OpenWrt Forum Archive

Topic: rb532 problem flashing image to nand

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,
I am not having any success in flashing 8.09 to NAND on this unit. It loads the .bin file to CF and works OK, but I get kernel panic when I try to netboot (openwrt-rb532-vmlinux). I have tried more than one snapshot fileas well as  8.09.1 and 8.09.2-RC2.  I have even compiled it myself and I keep getting
"Kernel panic - not syncing: No init found.  Try passing init= option to kernel."

Am I doing something wrong??

See my output below.


RouterBoard 532A

CPU frequency: 399 MHz
  Memory size:  64 MB

Press any key within 5 seconds to enter setup.....
kernel not found
trying dhcp protocol... OK
resolved mac address 00:08:A1:A5:3C:F2
Gateway: 10.10.200.254
transfer started ....... transfer ok, time=0.18s
setting up elf image... OK
jumping to kernel code
Linux version 2.6.30.8 (buildbot@localhost.localdomain) (gcc version 4.1.2) #1 Wed Oct 7 12:51:26 CDT 2009
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
memory: 47fe79fc @ b8018400 (usable)
User-defined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200 gpio=16383 mem=64M kmac=00:0C:42:0F:A0:8C board=500r5 boot=1 root=/dev/mtdblock1 rootfstype=yaffs
korina mac = 00:0C:42:0F:A0:8C
Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:256
Initializing IRQ's: 168 out of 256
PID hash table entries: 256 (order: 8, 1024 bytes)
calculating r4koff... 000c34f8(799992)
CPU frequency 400.00 MHz
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60956k/65536k available (2192k kernel code, 4508k reserved, 476k data, 136k init, 0k highmem)
Calibrating delay loop... 398.33 BogoMIPS (lpj=796672)
Mount-cache hash table entries: 512
net_namespace: 1008 bytes
NET: Registered protocol family 16
PCI: Initializing PCI
bio: create slab <bio-0> at 0
SCSI subsystem initialized
pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:03.0: PME# disabled
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ?© 2001-2006 Red Hat, Inc.
yaffs Oct  7 2009 12:45:42 Installing.
msgmni has been set to 119
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 104) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 104) is a 16550A
Driver 'sd' needs updating - please use bus_type methods
PATA driver for RouterBOARD 532 Compact Flash version 0.1.0
scsi0 : pata-rb532-cf
ata1: PATA max PIO4 irq 149
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
PCI: Enabling device 0000:00:02.0 (0080 -> 0083)
eth0: VIA Rhine III at 0x50010000, 00:0c:42:0f:a0:8d, IRQ 142.
eth0: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
PCI: Enabling device 0000:00:03.0 (0080 -> 0083)
eth1: VIA Rhine III at 0x50010100, 00:0c:42:0f:a0:8e, IRQ 143.
eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
eth2 (korina): not using net_device_ops yet
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 2 MTD partitions on "gen_nand":
0x000000000000-0x000000400000 : "Routerboard NAND boot"
ata1.00: CFA: SanDisk SDCFH-256, FhDA0145, max PIO4
ata1.00: 501760 sectors, multi 0: LBA
ata1.00: configured for PIO4
scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-25 FhDA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 501760 512-byte hardware sectors: (256 MB/245 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda:<5>0x000000400000-0x000008000000 : "rootfs"
sda1 sda2
rc32434_wdt: Stopped watchdog timer.
rc32434_wdt: Watchdog Timer version 1.0, timer margin: 20 sec
Registered led device: uled
sd 0:0:0:0: [sda] Attached SCSI removable disk
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
yaffs: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) readonly on device 31:1.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


Thanks in advance.

I have been compiling my own images and can now load the new image. However when I try to boot the image, here is what I get,  "FPU emulator disabled, make sure your toolchain was compiled with software floating point support (soft-float)".

Has anyone else tried this before? I am tying to figure out what adjustments to make but no luck so far. Any ideas??

Thanks


See the full output below.



RouterBOOT booter 2.18

RouterBoard 532A

CPU frequency: 399 MHz
  Memory size:  64 MB

Press any key within 5 seconds to enter setup.....
loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code
Linux version 2.6.30.8 (root@debian1) (gcc version 4.1.2) #8 Thu Oct 22 00:47:42 EST 2009
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
memory: 47fe79fc @ b8018400 (usable)
User-defined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200 gpio=16383 mem=64M kmac=00:0C:42:0F:A0:8C board=500r5 boot=1 block2mtd.block2mtd=/dev/sda2,131072
korina mac = 00:0C:42:0F:A0:8C
Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:256
Initializing IRQ's: 168 out of 256
PID hash table entries: 256 (order: 8, 1024 bytes)
calculating r4koff... 000c34f8(799992)
CPU frequency 400.00 MHz
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61156k/65536k available (2080k kernel code, 4308k reserved, 397k data, 132k init, 0k highmem)
Calibrating delay loop... 398.33 BogoMIPS (lpj=796672)
Mount-cache hash table entries: 512
net_namespace: 528 bytes
NET: Registered protocol family 16
PCI: Initializing PCI
bio: create slab <bio-0> at 0
SCSI subsystem initialized
pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:03.0: PME# disabled
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ?© 2001-2006 Red Hat, Inc.
yaffs Oct  2 2009 16:05:01 Installing.
msgmni has been set to 119
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 104) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 104) is a 16550A
Driver 'sd' needs updating - please use bus_type methods
PATA driver for RouterBOARD 532 Compact Flash version 0.1.0
scsi0 : pata-rb532-cf
ata1: PATA max PIO4 irq 149
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
PCI: Enabling device 0000:00:02.0 (0080 -> 0083)
eth0: VIA Rhine III at 0x50010000, 00:0c:42:0f:a0:8d, IRQ 142.
eth0: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
PCI: Enabling device 0000:00:03.0 (0080 -> 0083)
eth1: VIA Rhine III at 0x50010100, 00:0c:42:0f:a0:8e, IRQ 143.
eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
eth2 (korina): not using net_device_ops yet
ata1.00: CFA: SanDisk SDCFH-256, FhDA0145, max PIO4
ata1.00: 501760 sectors, multi 0: LBA
ata1.00: configured for PIO4
scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-25 FhDA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 501760 512-byte hardware sectors: (256 MB/245 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI removable disk
Creating 1 MTD partitions on "/dev/sda2":
0x000000000000-0x000003020000 : "/dev/sda2"
block2mtd: mtd0: [/dev/sda2] erase_size = 128KiB [131072]
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 2 MTD partitions on "gen_nand":
0x000000000000-0x000000400000 : "Routerboard NAND boot"
0x000000400000-0x000008000000 : "rootfs"
rc32434_wdt: Stopped watchdog timer.
rc32434_wdt: Watchdog Timer version 1.0, timer margin: 20 sec
Registered led device: uled
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (jffs2 filesystem) readonly on device 31:0.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
FPU emulator disabled, make sure your toolchainwas compiled with software floating point support (soft-float)

I have exactly the same error on a RB411 compiling my image from trunk. The message repeats itself every time i alter the status of one of the wifi interfaces.

Could anyone direct us to the relevan menu option ?

Edit :
Digging into the developers menu , i found this , already marked as yes

CONFIG_SOFT_FLOAT:
                                 
If your target CPU does not have a Floating Point Unit (FPU) or a kernel FPU emulator, but you still wish to support floating point  functions, then everything will need to be compiled with soft floating point support (-msoft-float).
Most people will answer N.
Symbol: SOFT_FLOAT [=y]
Prompt: Use software floating point by default
Defined at Config.in:332
Depends on: (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU && TARGET_OPTIONS
Location:
     -> Advanced configuration options (for developers) (DEVEL [=y])

(Last edited by MVV on 10 Feb 2010, 22:07)

The discussion might have continued from here.