x86(pc)상에서 yaffs2 이미지 mount 해보신분

deedman의 이미지

안녕하세요,

현재 yaffs2로 된 이미지 system.img 를 pc(host)상에서 mount를 해서 사용하려고 합니다

ubuntu vmware 상에서

yaffs2.ko insmod로 올리고

modprobe로
mtdchar,
mtdblock,
nandsim 올려서

ls /dev/mtd0와 /dev/mtdblock0 확인

cat /proc/filesystems 로
yaffs,
yaffs2 확인하였습니다.

mkyaffs2image로 이미지 하나 만들고

mtd-utils에서 나온
./flash_erase /dev/mtd0
./nandwrite -a -o /dev/mtd0 ./system.img

그 후 mount -t yaffs2 /dev/mtdblock0 /mnt/nand
로 마운트 하면 파일 내용들은 안 나오고 lost+found 가 나옵니다.

안드로이드 포럼이나 구글신에게서도 찾아보니
lost+found 증상은 좀 있는데 해결책에 없더라구요.

혹시 system.img 를 pc 상에서 mount 해서 사용하시는 분 안계신가요?

참고로 yaffs2에서 빌드된 mkyaffs2image로 테스트 test.img를 만든 후 해봐도 동일 증상이
나타 납니다.

몇일 동안 이것 때문에 삽질만 하고 있네요.^^

skysign의 이미지

저도 같은 증상입니다. ㅋㅋ
혹시 방법을 찾으셨으면 좀 알려주세요~

bushi의 이미지

예전에 쓰던 파일 첨부합니다.
OneNAND 가 MTD 에 들어올 당시 MTD 의 oob 다루는 부분이 이리저리 왔다갔다했는데,
mtd-utils 는 거기에 못 따라가는게 짜증나서 만들어 썼었습니다.
(당시 OneNAND 드라이버가 정상이 아니라... 디버깅 할 목적도 있었고요.)

타겟에서 돌리시려면 타겟용 커널 소스의 include/mtd/ 안의 파일들이 필요하고,
혹시 모르니 코드 안에 하드코딩 된 YAFFS2_TAG_SIZE 수치도 직접 확인하시는게 좋습니다.

얼마전에 nandwrite -a -o 로 yaffs2 이미지를 기록했는데 말씀하신 것 같은 현상이 발생해서
이걸 다시 찾아 사용했었는데, 현재 커널과도 별 이상없이 작동하더군요.
nandwrite.c 코드를 한번 들여다보긴 했는데... 귀찮아서 깊게 보진 않았습니다.

짜증나고 다급하기도 마음에 마구잡이로 손가락 닿는대로 때려넣은지라 코드가 굉장히 난잡합니다.

OTL

댓글 첨부 파일: 
첨부파일 크기
Plain text icon mkyaffs2.c.txt20.84 KB

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.