OpenWrt Forum Archive

Topic: Kamikaze on Pronghorn

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

Hi to all,

I'm trying to install Kamikaze on a Pronghorn metro SBC with the IXP425 at 533MHz.
I download the file "openwrt-pronghornmetro-2.6-zImage" from the site and I load it on the pronghron with "load -r -v -b 0x01600000 zImage".
After starting it with "go -n 0x01600000" I could see the kernel starting but it stops at Kernel Panic: Unable to mount root file system :-).

So I download the openwrt-ixp4xx-2.6-squashfs.img and I load it with "load -r -v -b 0x00800000 openwrt-ixp4xx-2.6-squashfs.img" but after booting I see the same error.

Any ideas about this?

Thanks in advance for help

Daniele

P.S.: I have found the memory addresses (0x00800000,0x01600000) indication on Pronghorn doc(ftp://ftp.adiengineering.com/Archive/PronghornSBC/ADI-PRONGHORN-HOWTO).

init flash contents: fis init -f
load kernel into memory: load -r -b %{FREEMEMLO} openwrt-pronghornmetro-2.6-zImage
flash the kernel: fis create kernel
check the free space: fis free
load rootfs into memory load -r -b %{FREEMEMLO} -l openwrt-ixp4xx-2.6-squashfs.img
flash rootfs (make sure you use all free space for it: fis create -l 0xfreespace rootfs

Is it possible to install kamikaze on a CF on the Pronghorn metro SBC and boot from there?

How can I accomplish that?

I'm planning to buy some units and i want to run them with kamikaze. I searched the forum and wiki and i didn't find any installation guidelines about this board.

Has anyone tried that?

Thanks.

Anyone????

bump.

We are due a shipment of Pronghorn metro boards and I would really like to get this up and working on them.
We only have an SBC210 for testing at the moment - has anyone managed to get it working on that board? Also, has anyone managed to get the metro to run from CF yet?
Sorry if this is basic stuff, first post here and fairly new to this software.....

Cheers,
Ade

I didn't try to run from CF, only from flash. Also, the metro image should work on the sbc as well - I'm preparing an updated patch for the Pronghorn series, tho.

Hi. I have the same problem "Kernle panic" after an exec.
I have downloaded and copied the zImage to the CF.
Then issued the load commands.
The output is as follow:

RedBoot> go -n 0x01600000
Uncompressing Linux................................................................. done, booting the kernel.
Linux version 2.6.21.6 (nbd@ds10) (gcc version 4.1.2) #2 Sun Sep 30 20:44:34 CEST 2007
CPU: XScale-IXP42x Family [690541c2] revision 2 (ARMv5TE), cr=000039ff
Machine: ADI Engineering Pronghorn Metro
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 14172KB available (1788K code, 167K data, 76K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
NET: Registered protocol family 2
Time: OSTS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8001000 (irq = 13) is a XScale
IXP4XX Q Manager 0.2.1 initialized.
IXP4XX NPE driver Version 0.3.0 initialized
ixp4xx_crypto 0.0.1 registered successfully
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0xfe0000
4 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 4 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00060000 : "RedBoot"
npe: searching for firmware...
npe: found at 0x13504, unknown/NPE-A func: 03, rev: a.8, size: 1074750988, id: 5003da08
npe: found at 0x4123c, IXP465/NPE-A func: 81, rev: 2.0, size: 12848, id: 10810200
npe: found at 0x4446c, IXP425/NPE-B func: 01, rev: 2.0, size: 12848, id: 01010200
Image loaded to NPE-B Func:1, Rel: 2:0, Status: 82400000
npe: found at 0x4769c, IXP425/NPE-C func: 01, rev: 2.0, size: 12848, id: 02010200
Image loaded to NPE-C Func:1, Rel: 2:0, Status: 80800000
0x00060000-0x00fe0000 : "unallocated"
0x00fe0000-0x00fff000 : "FIS directory"
0x00fff000-0x01000000 : "RedBoot config"
i2c /dev entries driver
nf_conntrack version 0.5.0 (128 buckets, 1024 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP westwood registered
NET: Registered protocol family 1
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>
XScale DSP coprocessor detected.
ixp4xx_mac driver 0.3.1: eth0 on NPE-B with PHY[0] initialized
ixp4xx_mac driver 0.3.1: eth1 on NPE-C with PHY[1] initialized
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
jffs2: Flash size not aligned to erasesize, reducing to 0KiB
jffs2: Too few erase blocks (0)
No filesystem could mount root, tried:  squashfs jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

I saw that there is only an openwrt-pronghorn-zImage.
Do I need also the ramdisk.gz?
Sorry for the basic question.
G

I am trying to compile the OpenWRT.
But after make menuconfig, I get "

Error during writing of the OpenWrt configuration.
Your configuration changes were NOT saved.

make: *** [menuconfig] Error 1


Why

If you want to use the CF for the root file system, you should change the kernel configuration and the command line to do so. If you can't save the config file, you have local problem with file permissions.

Thanks, and where I should start from?
How can I change the kernel in order to let the root filesystem be installed in the CF?
Regards

Kaloz wrote:

init flash contents: fis init -f
load kernel into memory: load -r -b %{FREEMEMLO} openwrt-pronghornmetro-2.6-zImage
flash the kernel: fis create kernel
check the free space: fis free
load rootfs into memory load -r -b %{FREEMEMLO} -l openwrt-ixp4xx-2.6-squashfs.img
flash rootfs (make sure you use all free space for it: fis create -l 0xfreespace rootfs

Ok, I did exactly as you wrote.
Now, I got the prompt, but when I try
ls
only strange characters come.
Why

_______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (7.09) -----------------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/# ls
\0x1b[1;34mbin\0x1b[0m   \0x1b[1;34metc\0x1b[0m   \0x1b[1;34mlib\0x1b[0m   \0x1b[1;34mproc\0x1b[0m  \0x1b[1;34msbin\0x1b[0m  \0x1b[1;34mtmp\0x1b[0m   \0x1b[1;36mvar\0x1b[0m
\0x1b[1;34mdev\0x1b[0m   \0x1b[1;34mjffs\0x1b[0m  \0x1b[1;34mmnt\0x1b[0m   \0x1b[1;34mrom\0x1b[0m   \0x1b[1;34msys\0x1b[0m   \0x1b[1;34musr\0x1b[0m   \0x1b[1;34mwww\0x1b[0m
root@OpenWrt:/#


Moreover, may you explain to me why I need two image, squashfs and opernwet-pronghron-zImage?
I am trying to understand, but if you can help me I will appreciate very much.
G

(Last edited by giusepped on 18 Feb 2008, 09:40)

"make kernel_menuconfig" can used to modify the kernel configuration. You need two "images" because one file is the kernel, the other is the root file system.

I have a question. Itried an answer but I hope to find it here.
I follosed the steps of Kaloz. Anyway:

1)Is it always necessary the creation of the kernel
That is I want to make a script that automatically load the kernel and the image.
2) How can I install a package into the OpenWrt and let it stay installed after a reboot?
I am trying to install OLSRd

G

This is from my friend Francesco (Thank you very much)


Hello,

here are the steps to flash OpenWrt Kamikaze 7.09 on
Pronghorn Metro:
(you have to issue these commands from Redboot using an
hypterminal)

fis init -f

load -r -b %{FREEMEMLO} -m xmodem    (and select
"openwrt-pronghornmetro-2.6-zImage", you can also upload
via tftp (faster))

fis unlock -f 0x50060000 -l 0x100000

fis create kernel

load -r -b %{FREEMEMLO} -m xmodem (and select
"openwrt-ixp4xx-2.6-squashfs.img")

fis unlock -f 0x50160000 -l 0xE80000

fis create -l 0xE80000 rootfs

Here you go.

To launch Kamikaze (you can run this script at startup)

fis load kernel

exec



Have fun :-)


Francesco

To install a package, just use the usual instructions for the ipkg command. I have two boards running olsrd with 7.09 for some months now.

baskin, can you public a manual or step by step how to install OpenWRT on Pronghorn metro SBC with the IXP425 at 533MHZ
because I try but is not working.

and how to build script to launch

thanks

(Last edited by faisan98 on 23 Oct 2015, 18:36)

The discussion might have continued from here.