Help to bootargs and multiboot from hdd

calle3

Member
Messages
53
Iam trying to get a E2 image working on a hdd with multiboot, I have a DGS based image in flash.

I have installed the E2 image in sda3 on hdd ( I have made 4 partitions )

My pc ip is 192.168.1.101 and box 192.168.1.102

Have tried with these bootargs:

setenv menu_1 'front_puts "DGS i Flash";setenv ipaddr 192.168.1.102;setenv serverip 192.168.1.101;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv bootargs "console=ttyAS1,115200 panic=3 root=/dev/mtdblock3 bigphysarea=1500 quiet";setenv bootcmd "bootm a0060000"';saveenv;boot

setenv menu_2 'front_puts "USB STICK";setenv ipaddr 192.168.1.102;setenv serverip 192.168.1.101;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv bootusb "run bootargsusb;usb reset;ext2load usb 0:2 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargsusb "setenv bootargs console=ttyAS1,115200 panic=3 root=/dev/sdb2 rw rootdelay=10 init=/bin/devinit ip=$ipaddr:$serverip:$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";seten v bootcmd "run bootusb";saveenv;boot'

setenv menu_3 'front_puts "HD SDA 3";setenv ipaddr 192.168.1.102;setenv serverip 192.168.1.101;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv boothdd "run bootargshdd;ide reset;ext2load ide 0:3 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargshdd "setenv bootargs console=ttyAS1,115200 panic=3 bigphysarea=10240 root=/dev/sda3 rw rootdelay=1 init=/bin/devinit ip=$ipaddr:$serverip:$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";seten v bootcmd "run boothdd";saveenv;boot'

setenv menu_4 'front_puts "HD SDA 4";setenv ipaddr 192.168.1.102;setenv serverip 192.168.1.101;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv boothdd "run bootargshdd;ide reset;ext2load ide 0:4 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargshdd "setenv bootargs console=ttyAS1,115200 panic=3 bigphysarea=10240 root=/dev/sda4 rw rootdelay=1 init=/bin/devinit ip=$ipaddr:$serverip:$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";seten v bootcmd "run boothdd";saveenv;boot'

saveenv

but I cant get it to run... neither of the images, I have putty running when booting
Putty stops... and says....
** Unable to read "boot/uImage" from ide 0:3 **
## Booting image at a5ff0000 ...
Bad Magic Number

Anybody.. some ideas???
 

Bro1

Senior Member
Messages
278
i use that tutorial and mine boots fine from internal hardrive....i have no usb sticks in
 

Rocknroll

Staff member
Administrator
Messages
6,174
If it helps I've never changed bootargs on my box and multiboot is working fine.
Think that was only required before. Flashing multiboot should be sufficient.
 

alexigor

Registered
Messages
12
Hi!

try this ... it works for me:
(just change network adresses accordingly)

setenv menu_3 'setenv ipaddr 192.168.1.5;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv bootide3 "run bootargside;ide reset;ext2load ide 0:3 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargside "setenv bootargs console=ttyAS1,115200 panic=3 root=/dev/sda3 rw rootfstype=ext2 init=/bin/devinit ip=$ipaddr::$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";setenv bootcmd "run bootide3";front_puts HD-SDA3;saveenv;boot'

setenv menu_4 'setenv ipaddr 192.168.1.5;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv bootide4 "run bootargside;ide reset;ext2load ide 0:4 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargside "setenv bootargs console=ttyAS1,115200 panic=3 root=/dev/sda4 rw rootfstype=ext2 init=/bin/devinit ip=$ipaddr::$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";setenv bootcmd "run bootide4";front_puts HD-SDA4;saveenv;boot'
 

calle3

Member
Messages
53
Hi!

try this ... it works for me:
(just change network adresses accordingly)

setenv menu_3 'setenv ipaddr 192.168.1.5;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv bootide3 "run bootargside;ide reset;ext2load ide 0:3 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargside "setenv bootargs console=ttyAS1,115200 panic=3 root=/dev/sda3 rw rootfstype=ext2 init=/bin/devinit ip=$ipaddr::$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";setenv bootcmd "run bootide3";front_puts HD-SDA3;saveenv;boot'

setenv menu_4 'setenv ipaddr 192.168.1.5;setenv gateway 192.168.1.1;setenv netmask 255.255.255.0;setenv bootide4 "run bootargside;ide reset;ext2load ide 0:4 a5ff0000 boot/uImage;bootm a5ff0000";setenv bootargside "setenv bootargs console=ttyAS1,115200 panic=3 root=/dev/sda4 rw rootfstype=ext2 init=/bin/devinit ip=$ipaddr::$gateway:$netmask mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000";setenv bootcmd "run bootide4";front_puts HD-SDA4;saveenv;boot'

i have changed your 192.168.1.5 to my 192.168.1.102 which is my box. and pasted in in.

Bu get this error!!

U-Boot 1.3.1 (Oct 24 2008 - 18:09:07) - stm23-2008-03-19
Board: cuberevo (0x2D42C041)
Board: 12 dotmatrix vfd front
DRAM: 128 MB
Flash: 32 MB
In: serial
Out: serial
Err: serial
Reserve 0x2010000 bytes from 0xa5ff0000 for DGS upgrade buffer.
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
.
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors

Reset IDE: Bus 0: OK
Device 0: Model: ST9250315AS Firm: 0001SDM1 Ser#: V5BC58SL
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

** Unable to read "boot/uImage" from ide 0:3 **
## Booting image at a5ff0000 ...
Bad Magic Number
cuberevo>
 

DKaftermath

Senior Member
Messages
320
i might be wrong here, but i am sure bad magic number means one of these things.

either a bad formatted partition which cant be read.

maybe the partition needs mounted.

maybe the image you unpacked is corrupt.

solution :
in nlb settings turn off format HDD, and also turn off in nlb settings turn off format HDD, and also off check HDD on boot .
format HDD to just 1 partition and make it ext3 .

Boot DGS based image.
FTP a different stick version E2 to /media
then unpack it using telnet commands.

flash the latest DGS multiboot config or search here for a newish one.

boot image from HDD by holding down number 6 on remote control while you switch on the box..
some multiboot configs are different so take notice of the number to press.
 

calle3

Member
Messages
53
i might be wrong here, but i am sure bad magic number means one of these things.

either a bad formatted partition which cant be read.

maybe the partition needs mounted.

maybe the image you unpacked is corrupt.

solution :
in nlb settings turn off format HDD, and also turn off in nlb settings turn off format HDD, and also off check HDD on boot .
format HDD to just 1 partition and make it ext3 .

Boot DGS based image.
FTP a different stick version E2 to /media
then unpack it using telnet commands.

flash the latest DGS multiboot config or search here for a newish one.

boot image from HDD by holding down number 6 on remote control while you switch on the box..
some multiboot configs are different so take notice of the number to press.

I will try that... but I cant understand something, I have tried the guide with a USB.stick with the same result!!

I am using PGI 0,5 in flash.. I am not shure where to change the NLB setting for the hdd???
 

DKaftermath

Senior Member
Messages
320
I will try that... but I cant understand something, I have tried the guide with a USB.stick with the same result!!

I am using PGI 0,5 in flash.. I am not shure where to change the NLB setting for the hdd???

is it the same image you try on HDD and usb, because if it is , it could be corrupt.
 

Dooley

Registered
Messages
43
PGI 0.5 in Flash doesn't work with AAF Wintertime.Try Sifteam

I have been multibooting wiht these two and frankly i don't see how the image in flash should affect your ability to boot another from stick or hdd.


I have been helping Calle, via messenger, for a couple of days, trying to get multibooting to work. I have given him the exact same instructions, that do work on my stb.
Even a clean install of uboot 1.3.3 and a multiboot config file, will not allow us to boot from sda1, sda2 or sdb1 with E2 images in all places.

Next step, if he'll allow me, will be me taking control of his box via telnet and then i'll try to partiton and format his drive and install E2, just to rule out mistakes in this process.

Oh and btw... We did try different E2 images and different multiboot configs..
 

Gsxr

Member
Messages
65
this is from pacco if you are having problems to boot from usb with PGI 0.5

Can ppl having this problem try the following?
Try this mkfs.ext2 command line:


mkfs.ext2 -I 128 /dev/sdb1

Using the -I 128 option, u-boot recognizes the filesystem again.
ext2ls shows the files on my stick.



worked for me all working great now
 
Top