Kernel panic on booting gateworks kernel

Post new topic   Reply to topic    DD-WRT Forum Index -> ARM or PPC based Hardware
Author Message
mohdshakir
DD-WRT Novice


Joined: 23 Jan 2007
Posts: 4

PostPosted: Wed Jan 24, 2007 9:35    Post subject: Kernel panic on booting gateworks kernel Reply with quote
I've got kernel panic while booting the gateworks kernel on my avila board, and since the step I took was a bit different from the manuals, I details my situation as per below;

The Avila board that I have is a custom order version, with 8MB flash, CF card slot, and for some reason, I cant use tftp to install the kernel and fs to the flash. What I did however was this (partly based on http://www.dd-wrt.com/forum/viewtopic.php?t=9763);


Code:
fis init -f
load -r -m disk -b 0x00800000  hda1:zImage
fis create -b 0x00800000 -f 0x050080000 -l 0x00200000 -r 0x00800000 linux
fis create -n linux
load -r -m disk -b 0x00800000  hda1:root.fs
fis create -b 0x00800000 -f 0x050280000 -l 0x00500000 ramdisk
fis create -b 0x00800000 -f 0x050780000 -l 0x00020000 mampf
fis create -b 0x00800000 -f 0x0507A0000 -l 0x00020000 nvram


I've got no problem/error while going through the above procedure, except a confirmation dialog that appeared when i "fis create -n linux" which i guess is normal. The problem starts when


Code:
fis load linux
exec
Using base address 0x00800000 and length 0x00157488
Uncompressing DD-WRT.........................................................................................
Linux version 2.6.17.14 (root@linux) (gcc version 4.1.1 DD-WRT Platform) #54 Sun Jan 7 23:22:40 CET 2007
[...............................]
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
attempt to access beyond end of device
mtdblock2: rw=0, want=10302, limit=10240
SQUASHFS error: sb_bread failed reading block 0x141e
SQUASHFS error: unable to read uid/gid table
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x7471 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0xaada instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0xffff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x4001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0xa308 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030: 0x591c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000034: 0x0100 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000003c: 0x2aaa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000044: 0x5079 instead
Further such events for this erase block will not be printed
Empty flash at 0x00000070 ends at 0x00000074
[........................................]
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000929f4
You cannot use older JFFS2 filesystems with newer kernels
[........................................]
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004e0020: 0x79d5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004e0024: 0x55c6 instead
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 40
VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
 <0>Rebooting in 10 seconds..



Can anyone explain what really wrong?
Sponsor
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Wed Jan 24, 2007 12:21    Post subject: Reply with quote
your addresses are wrong

i changed your flashing instruction

fis init -f
load -r -m disk -b 0x00800000 hda1:zImage
fis create -b 0x00800000 -f 0x050080000 -l 0x00200000 -r 0x00800000 linux
fis create -n linux
load -r -m disk -b 0x00800000 hda1:root.fs
fis create -b 0x00800000 -f 0x050280000 -l 0x00520000 ramdisk
fis create -b 0x00800000 -f 0x0507A0000 -l 0x00020000 mampf
fis create -b 0x00800000 -f 0x0507C0000 -l 0x00020000 nvram


after flashing fis list should show this (made with a GW2348-2)

RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00080000 0x00000000
linux 0x50080000 0x00800000 0x00200000 0x00800000
ramdisk 0x50280000 0x50280000 0x00520000 0x00800000
mampf 0x507A0000 0x507A0000 0x00020000 0x00800000
nvram 0x507C0000 0x507C0000 0x00020000 0x00800000
FIS directory 0x507E0000 0x507E0000 0x0001F000 0x00000000
RedBoot config 0x507FF000 0x507FF000 0x00001000 0x00000000

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
mohdshakir
DD-WRT Novice


Joined: 23 Jan 2007
Posts: 4

PostPosted: Thu Jan 25, 2007 2:30    Post subject: Reply with quote
Thanks, that solved the problem. I somehow hit another wall when the system failed to boot, stopping at setting up IPv4 over IPv6 tunneling driver as shown below. I dont know how this might relate, but could it be caused by the fact that our built in ethernet interface doesnt come with MAC address?


Code:
ixp400_eth: Found PHY 0 at address 0
ixp400_eth: Found PHY 1 at address 1
ixp400_eth: ixp0 is using NPEB and the PHY at address 0
ixp400_eth: ixp1 is using NPEC and the PHY at address 1
ixp400_eth: Use default MAC address 00:02:b3:01:01:01 for port 0
ixp400_eth: Use default MAC address 00:02:b3:02:02:02 for port 1
ath_hal: DD-WRT-0.9.17.1x (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)
wlan: 0.8.4.2 (0.9.2)
ath_rate_sample: 1.2 (0.9.2)
ath_pci: 0.9.4.5 (0.9.2)
PCI: enabling device 0000:00:01.0 (0340 -> 0342)
ath_pci: switching rfkill capability off
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x48000000, irq=28
wlan: mac acl policy registered
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): ixp0: link is not ready
IPv6 over IPv4 tunneling driver
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Fri Jan 26, 2007 1:25    Post subject: Reply with quote
i just can tell you my experiences with the gateworks boards which are all comming with mac adresses and they are working fine. but a new release is already schedules. i just have still some things to fix within the webgui
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
mohdshakir
DD-WRT Novice


Joined: 23 Jan 2007
Posts: 4

PostPosted: Fri Jan 26, 2007 1:54    Post subject: Reply with quote
Ok, I'll wait for the new release, and I hope you can look into this if you have the time Smile I'm pretty new new to this and to look at the thing myself, I need to be able to extract the firmware, which I still fail (refer to my other post; http://www.dd-wrt.com/forum/viewtopic.php?t=10140).

As I mentioned before, mine is a custom order board, and for unknown reason, ours doesnt come with MAC addresses.. Need to ifconfig ethX hw ether xxxx everytime the system boots (on our firmware based on gatework's SDK / uclinux, not ddwrt for sure), and for the same reason, I cant use tftp to flash the rom.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Fri Jan 26, 2007 2:25    Post subject: Reply with quote
the firmware modification kit will only work for broadcom versions and is not compatible with gateworks images.

about your tftp problem. if you tell me how much memory is installed in your system, i can send you a new redboot image. but if your board has no mac's installed this could be the reason for your tftp problem too. then you just can flash with jtag. i can provide you a full jtag image if needed. but in any case i need the size of your ram memory.
but this will not help you out with your mac problem. this must be a fault of your board. maybe gateworks missed to preflash the mac data. so you must contact gateworks for fixing it. dd-wrt reads out the mac addresses out of a special eeprom section.
but i dont know if you can write to it. if yes. you can get access at /sys/bus/i2c to it. its stored as binary data in
/sys/devices/platform/IXP4XX-I2C.0/i2c-0/0-0051/eeprom

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
lanzl
DD-WRT Novice


Joined: 22 Jan 2007
Posts: 6

PostPosted: Sat Jan 27, 2007 2:40    Post subject: Reply with quote
I think , mac is not a problem, because many ixp42x base board do not have eeprom on board for MAC store.

In Redboot ,it can set MAC address for tftp flash init.

I also tested your dd-wrt for ixp base version , I got the login prompt, but i can not login
use root/admin , any changed? or some other problem?

Thanks
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Sat Jan 27, 2007 13:28    Post subject: Reply with quote
you must connect with web interface for the first time. on first boot all logins are disabled
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
uniix
DD-WRT Novice


Joined: 08 Dec 2006
Posts: 3
Location: Kuala Lumpur, Malaysia

PostPosted: Wed Jun 27, 2007 6:17    Post subject: Avila GW2348SP112A without mac address Reply with quote
Hi,

I'm having a trouble getting the access code as my board doesn't have an internal rom mac address. Thus, I cannot connect to the board for activation via eth0 interface. This is a special board from Gateworks. Actually there is a trick to bring up eth0 interface on this board by using command:
Code:
ifconfig eth0 hw ether $ETH0MACADDRESS


Please, we are stuck here. Need to activate now.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Wed Jul 04, 2007 12:40    Post subject: Reply with quote
no this trick will not work. ixp0 and ixp1 are the ethernet interfaces. eth0 does not exist. if there is no eeprom with mac addresses on the board, the whole thing will simply not work. the activation requires this eeprom
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> ARM or PPC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum