[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] EXT2 filesystem on RAMDISK
Hello,
it seems to me that you don't have compiled the ext2 filesystem into the
kernel. Only cramfs and FAT filesytems are compiled into it.
Check the following setting from the Linux kernel:
File systems --->
[*] Second extended fs support
You can also try to pass the kernel command line parameter
rootfstype=ext2
to force the kernel to use ext2 filesystem type.
Hans
Leonid <Leonid@xxxxxxxxx> wrote:
> Hi:
>
> I'm trying to use EXT2 on RAMDISK as root filesystem. I'm using uClinux,
> running on Xilinx Spartan board. I've created image, downloaded it and
> try to boot:
>
> ## Loading Ramdisk Image at 23400000 ...
> Image Name: 'AKA Ramdisk'
> Image Type: Microblaze Linux RAMDisk Image (uncompressed)
> Data Size: 4194304 Bytes = 4 MB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> No Linux M68K
>
> Error comes from u-boot/lib_microblaze/microblaze_linux.c file and I've
> fixed that - see my change below:
>
> ====
> //depot/LM125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/u-boot
> /lib_microblaze/microblaze_linux.c#1 -
> /home/leonid/LM125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/u
> -boot/lib_microblaze/microblaze_linux.c ====
> @@ -113,13 +113,13 @@
> }
>
> SHOW_BOOT_PROGRESS (11);
>
> if ((hdr->ih_os != IH_OS_LINUX) ||
> - (hdr->ih_arch != IH_CPU_M68K) ||
> + (hdr->ih_arch != IH_CPU_MICROBLAZE) ||
> (hdr->ih_type != IH_TYPE_RAMDISK)) {
> - printf ("No Linux M68K Ramdisk Image\n");
> + printf ("No Linux Microblaze Ramdisk Image\n");
> SHOW_BOOT_PROGRESS (-13);
> do_reset (cmdtp, flag, argc, argv);
> }
>
> Now image loads fine, but mounting fails:
>
> Linux version 2.4.32-uc0 (root@mylinux) (gcc version 3.4.1 ( Xilinx EDK
> 8.1.01 Build EDK_I.19.4 080506 )) #42 Thu Feb 1 18:15:43 PST 2007
> On node 0 totalpages: 8192
> zone(0): 8192 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> CPU: MICROBLAZE
> Kernel command line: ramdisk_size=8192 root=/dev/ram rw
> macaddr=00:01:02:03:cf:71
> ip=192.168.0.207:192.168.0.141:192.168.0.1:255.255.255.0:L
> M125:eth0:off panic=1 console=ttyS0,115200
> Console: xmbserial on UARTLite
> Calibrating delay loop... 2.37 BogoMIPS
> Memory: 32MB = 32MB total
> Memory: 29828KB available (1231K code, 1348K data, 56K init)
> Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
> Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Microblaze UARTlite serial driver version 1.00
> ttyS0 at 0x40600000 (irq = 2) is a Microblaze UARTlite
> ttyS1 at 0xffffe000 (irq = 3) is a Microblaze UARTlite
> Starting kswapd
> RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
> eth0: using fifo mode.
> eth0: Xilinx EMAC #0 at 0x40E00000 mapped to 0x40E00000, irq=1
> eth0: id 2.0h; block id 7, type 1
> physmap_auto flash device: 400000 at 21000000
> physmap_auto probing buswidth 1
> Amd/Fujitsu Extended Query Table v1.0 at 0x0040
> MFR 0x20 DevCod 0x2257 DevTyp X16 intr 1 bootloc 2 unlk AAA 555
> number of CFI chips: 1 devsize 0x00400000
> Chip 0 reg 0 offset 0x00000000 size 0x2000 num 8
> Chip 0 reg 1 offset 0x00010000 size 0x10000 num 63
> cfi_cmdset_0002: Disabling fast programming due to code brokenness.
> physmap_auto: no partition info available, registering whole flash at
> once
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 4096)
> eth0: Promiscuous mode disabled.
> IP-Config: Complete:
> device=eth0, addr=192.168.0.207, mask=255.255.255.0,
> gw=192.168.0.1,
> host=LM125, domain=, nis-domain=(none),
> bootserver=192.168.0.141, rootserver=192.168.0.141, rootpath=
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> cramfs: wrong magic
> FAT: bogus logical sector size 0
> FAT: bogus logical sector size 0
> Kernel panic: VFS: Unable to mount root fs on 01:00
> <0>Rebooting in 1 seconds..
>
> What's wrong with my uClinux configuration?
>
> Thanks,
>
> Leonid.
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
--
Dr. Johann Pfefferl ------------ mailto j.pfefferl at eubus dot net
Eubus GmbH http://www.eubus.net +++++ http://www.hydraxc.com
Phone: +49 (0)89 45 22 578-67
Fax: +49 (0)89 45 22 578-55
==
-o) A computer program does what you tell it to do,
/\\ not what you want it to do.
_\_v-
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/