Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by jay_1025@Apr 27 2006, 04:28 PM hi hippo
i have built a rootfs in ~/rootfs/mnt dir and rebuilt kernel successfully.
then i can't work under uclinux system. i find some wrong information to know from booting messages,
and how should i edit memory address of my flash ?
my booting info following:
altera nios ii support © 2004 microtronix datacom ltd.
setup_arch: no persistant network settings signature at 008f0000
built 1 zonelists
kernel command line: root=/dev/mtdblock0
pid hash table entries: 64 (order: 6, 1024 bytes)
dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
memory available: 6284k/8192k ram, 0k/0k rom (1649k kernel code, 166k data)
mount-cache hash table entries: 512
net: registered protocol family 16
scsi subsystem initialized
jffs2 version 2.2. (nand) © 2001-2003 red hat, inc.
io scheduler noop registered
io scheduler deadline registered (default)
serial: jtag uart driver $revision: 1.4 $
ttyj0 at mmio 0x81004000 (irq = 1) is a jtag_uart
dmfe_probe:eth0, 50000 khz nios
<dm9000> eth0 i/o: 80900090, vid: 90000a46
addr: 00:07:ed:00:00:00
dmfe_probe:eth1, 50000 khz nios
altera ndk flash (amd): found 1 x16 devices at 0x0 in 8-bit bank
amd/fujitsu extended query table at 0x0040
number of cfi chips: 1
cfi_cmdset_0002: disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
redboot partition parsing not available
using altera ndk partition definition
creating 4 mtd partitions on "altera ndk flash (amd)":
0x00200000-0x00600000 : "romfs/jffs2"
mtd: partition "romfs/jffs2" extends beyond the end of device "altera ndk flash
(amd)" -- size truncated to 0x200000
0x00000000-0x00200000 : "loader/kernel"
0x00600000-0x00700000 : "user configuration"
mtd: partition "user configuration" is out of reach -- disabled
0x00700000-0x00800000 : "safe configuration"
mtd: partition "safe configuration" is out of reach -- disabled
net: registered protocol family 2
ip route cache hash table entries: 128 (order: -3, 512 bytes)
tcp established hash table entries: 512 (order: -1, 2048 bytes)
tcp bind hash table entries: 512 (order: -1, 2048 bytes)
tcp: hash tables configured (established 512 bind 512)
tcp reno registered
tcp bic registered
net: registered protocol family 1
net: registered protocol family 10
ipv6 over ipv4 tunneling driver
net: registered protocol family 17
kernel panic - not syncing: vfs: unable to mount root fs on unknown-bloc(0,0) http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
thx in advance !
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14746)
--- quote end ---
--- Quote End --- You should do it in two steps. First, with normal initramfs, and no kernel command line. Edit drivers/mtd/maps/altera.c , to the offset and size of your cfi flash. Remove unused mtd parts. Rebuild zImage, and check if mtd is detected correctly. If mtdblock0 is correct, then try mount it as jffs2, copy the rootfs. And then reboot again, to verify if all the data is correct. If all work without problems, then do the step2, rootfs to your mtd.