USB booting without FAT patition

Antworten
mackowiakp
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 130
Registriert: Fr 12. Apr 2013, 15:17
Wohnort: Gdynia (Poland)

USB booting without FAT patition

#1

Beitrag von mackowiakp » Mo 13. Jan 2014, 15:00

As it can be seen in Maxibootloader, it first look to FAT partition of USB and loads uImage file and then loads /boot/uImage from ext2 partition of USB.
Is it possible to boot satbox directly from ext2 only formatted USB pen? And what modifications are necessary in place for example bootcmd_8

Here is the content of my Maxiboot setup:

Code: Alles auswählen

Bootargs backup from 192.168.0.4 prepared 2014-01-13
ethaddr=00:1D:EC:00:12:34  
bootdelay=1
baudrate=115200
autoload=n
board=Twin
ipaddr=192.168.0.4
netmask=255.255.255.0
gatewayip=192.168.0.1
hdd=1
mtdargs=set bootargs console=ttyAS1,115200 nwhwconf=device:eth0,hwaddr:${ethaddr} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask} root=/dev/mtdblock3 rootfstype=squashfs bigphysarea=4060 stmmaceth=msglvl:0,watchdog:4000,rxsize:16 loglevel=0
usbargs=set bootargs console=ttyAS1,115200 nwhwconf=device:eth0,hwaddr:${ethaddr} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${board}:eth0:off root=/dev/sd${sdx}${par} rw mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000 rootdelay=5 init=/bin/dev
sdxconf=if test $hdd -eq 0 -a $usb -eq 0; then set sdx a; elif test $hdd -eq 1 -a $usb -eq 1; then set sdx c; else set sdx b; fi
usbconf=usb reset; sleep 3; run sdxconf; run usbargs
usbload=if fatload usb $usb:1 a5000000 /uImage$par; then; elif ext2load usb $usb:$par a5000000 /boot/uImage; then; fi
backup=erase a0300000 a1ffffff; cp.b a5000000 a0300000 1d00000; run mtdargs; bootm a0300000
usbtool=if fatload usb 0:1 a5000000 /uImage; then bootm a5000000; elif fatload usb 0:1 a5000000 /uBackup_${board}; then run backup; fi; run mtdargs; bootm a0300000
bootcmd=bootmenu $menutimeout $default
bootdesc_0=---Flash---
bootcmd_0=run mtdargs; bootm a0300000
bootdesc_1=--USB1 P1--
bootcmd_1=set usb 0; set par 1; run usbconf; run usbload; bootm a5000000
bootdesc_2=--USB1 P2--
bootcmd_2=set usb 0; set par 2; run usbconf; run usbload; bootm a5000000
bootdesc_3=--USB1 P3--
bootcmd_3=set usb 0; set par 3; run usbconf; run usbload; bootm a5000000
bootdesc_4=--USB1 P4--
bootcmd_4=set usb 0; set par 4; run usbconf; run usbload; bootm a5000000
bootdesc_5=--USB2 P1--
bootcmd_5=set usb 1; set par 1; run usbconf; run usbload; bootm a5000000
bootdesc_6=--USB2 P2--
bootcmd_6=set usb 1; set par 2; run usbconf; run usbload; bootm a5000000
bootdesc_7=--USB2 P3--
bootcmd_7=set usb 1; set par 3; run usbconf; run usbload; bootm a5000000
bootdesc_8=--USB2 P4--
bootcmd_8=set usb 1; set par 4; run usbconf; run usbload; bootm a5000000
bootdesc_9=NEUTRINO
bootcmd_9=run bootargs_9;bootm a0040000
bootargs_9=set bootargs console=ttyAS1,115200 root=/dev/mtdblock2 rw mem=128m ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:AT7000:eth0:off coprocessor_mem=4m@0x10000000,4m@0x10400000 rootdelay=0 nwhwconf=device:eth0,hwaddr:${ethaddr} init=/bin/devinit
menutimeout=3000
stdin=serial
stdout=serial
stderr=serial
default=2

Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 10049
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 107 Mal
Danksagung erhalten: 137 Mal
Kontaktdaten:

Re: USB booting without FAT patition

#2

Beitrag von BPanther » Mo 13. Jan 2014, 15:11

Here you see "usbload".

Code: Alles auswählen

bootcmd_8=set usb 1; set par 4; run usbconf; run usbload; bootm a5000000
This is the called line. Just change it here or create a new.

Code: Alles auswählen

usbload=if fatload usb $usb:1 a5000000 /uImage$par; then; elif ext2load usb $usb:$par a5000000 /boot/uImage; then; fi
Example with new one - Now calling "usbload_a".

Code: Alles auswählen

bootcmd_8=set usb 1; set par 4; run usbconf; run usbload_a; bootm a5000000
And here it is...

Code: Alles auswählen

usbload_a=if ext2load usb $usb:$par a5000000 /boot/uImage; then; fi
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum nutzen und das Wiki lesen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen mit NMP: 7x UFS910 (128MB), UFS912, 2x UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD,
2x AX 4K HD51 (E2-OATV, NMP-DDT, DVB-S/SX/C/T), VU+DUO (E2-OATV), VU+Solo4K (DVB-S (FBC)/C/T (DUAL))

mackowiakp
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 130
Registriert: Fr 12. Apr 2013, 15:17
Wohnort: Gdynia (Poland)

Re: USB booting without FAT patition

#3

Beitrag von mackowiakp » Mo 13. Jan 2014, 15:33

THX. I will try later. My Grandson is watching Disney Channel right now :lol:

mackowiakp
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 130
Registriert: Fr 12. Apr 2013, 15:17
Wohnort: Gdynia (Poland)

Re: USB booting without FAT patition

#4

Beitrag von mackowiakp » Mo 13. Jan 2014, 19:37

Yep. THX. WORKS!

Antworten

Zurück zu „AV7000 / Octagon 1018 - USB“