2009-09-25 00:39:17     ext2 root filesystem problem!

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-09-25 00:39:17     ext2 root filesystem problem!

liang wang (CHINA)

Message: 80411   

 

Dear ADI support:

 

when I making ext2 filesystem I meet some problem,the following is my step

 

1)

 

I commpressed the NFS root filesystem which run smoothly on my board to a package --- install.tar.gz by the command:

 

#tar cz * > ../install.tar.gz

 

2)

 

I made a ext2 filesystem image---ext2fs.

 

#genext2fs -b 66560 -i   ../root_filesystem/  ext2fs

 

3)  made a dir mnt and  mount the image

 

#mkdir mnt

 

#mount -t ext2 -o loop ext2fs mnt

 

4) decompressed the filesystem to the ext2fs image

 

#tar zxf install.tar.gz -C  mnt

 

however, it fail to decompress the package install.tar.gz show thess:

 

tar: usr/lib/X11/fonts/misc/7x13B-ISO8859-15.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/8x13B.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/7x13O-ISO8859-15.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/9x15-ISO8859-1.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/8x13-ISO8859-15.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/8x13.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/7x13-ISO8859-15.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/7x14.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/6x13O-ISO8859-15.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/9x15.pcf.gz: Cannot open: No such file or directory

tar: usr/lib/X11/fonts/misc/7x13B-ISO8859-1.pcf.gz: Cannot open: No such file or directory

 

what is the problem?

 

thank you!

TranslateQuoteReplyEditDelete

 

 

2009-09-25 03:35:39     Re: ext2 root filesystem problem!

Mike Frysinger (UNITED STATES)

Message: 80443   

 

are you sure you created the tar correctly ?  are you running out of space in the loop file ?

QuoteReplyEditDelete

 

 

2009-09-28 08:01:00     Re: ext2 root filesystem problem!

liang wang (CHINA)

Message: 80566   

 

Dear Mike:

 

I use the method in chapter 9.10 in the book <<embedded linux primer>,it successe

 

I use  the following command  build a ext2  root filesystem image:

 

#dd if=/dev/zero of=ext2fs  bs=1k count=30720

#mkfs.ext2 ext2fs

 

#mkdir mnt

 

#mount -t ext2 -o loop ext2fs mnt

 

#cd mnt tar  zxvf ../install.tar.gz

 

#cd ..

 

#umount  mnt

 

then ,I get a  ext2 image  which contain the root filesystem .The install.tar.gz  contain the root filesystem  which I used for NFS root filesystem ,it work correctly for NFS ,so I want to use it to build the  ext2 root filesystem!

 

.I have reference the page:

 

http://docs.blackfin.uclinux.org/doku.php?id=using_cf_flash_card_disk_with_u-boot_and_linux_kernel

 

and  use the following command to write the root filesystem to my CF_card in uboot.

 

#tftp 0x10000000 ext2fs

 

#ide write 0x10000000 0x9B00 0XF000

 

When I use the NFS root filesystem,I can mount the the disk by

 

#mount /dev/hda3      /mnt

 

It mount successfully, and I can write and read the CF card,so I think the driver is ok.

 

How ever ,when change the root filesystem to ext2 ,it show

 

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem).

Freeing init memory: 136K

 

ide_timer_expire

hda: lost interrupt

WARNING: at kernel/softirq.c:210 local_bh_enable()

 

 

and it go to dead!

 

What is the main reason?

 

Can NFS root  filesystem can directly used to build the EXT2  root filesystem without change?

 

Thank you .

 

Best regards!

 

                                                                          wangl

TranslateQuoteReplyEditDelete

 

 

2009-09-30 02:19:01     Re: ext2 root filesystem problem!

Mike Frysinger (UNITED STATES)

Message: 80676   

 

creating these tar/ext2 files on the board really doesnt make any sense.  create them on your host and transfer the final image to the board for writing.

 

as for the interrupt error, that could be a bunch of things.  maybe your hardware is broken.  maybe the timings are too fast.  maybe you're using old code and we've since fixed the problem.

 

you really need to completely describe the hardware and software that you're using when asking questions.  what version of toolchain/uclinux-dist/kernel are you using ?  what hardware exactly are you using ?  what does the exact boot of the kernel look like ?

Attachments

    Outcomes