multiboot for UFS-912...

j00zek
Developer
Developer
Beiträge: 89
Registriert: Do 21. Jul 2011, 22:51
Hat sich bedankt: 0
Danksagung erhalten: 0

multiboot for UFS-912...

#1

Beitrag von j00zek »

Kathrein UFS-912 is quite good sat tuner, but it has one missing part - multiboot. I've read on several threads that it's impossible to have multiboot implemented on it.
But this is crucial feature to me. I realy like playing my new toy and developing some things, but my wife wants also to watch TV. Of course flashing tuner frequently is not an option, as I need possibility to quickly change image and not loose my updates. So my need is, or better to say was to have multiboot implemented. ;)

Jurney has begun... After several tests I confirmed booting image from USB drive using standard kernel is impossible. Always finish with kernel panic. But, the question was why? And answer, because of the EHCI driver bug. The simplest working solution was to disable it (or set as loadble modul) in kernel config and leave only OHCI driver. Results:
- loading kernel from mtd2 and loading root from USB - works properly
- loading kernel from tftp server and loading root from USB - works properly
- loading kernel from USB and loading root from USB - kernel panic. it looks like kernel doesn't see any USB devices and currently I don't have any idea what to do with that. :(

Anyway because most images are created on top of duckbox project, which means they use the same kernel (with minor changes) it should be now possible to create some kind of multiboot for this tuner. I've checked this idea and confirmed AAF E2, PKT E2, Neutrino BP starts properly using the same "patched" kernel. Of course all have to be compiled with the same version of the kernel, but still better is to have something than nothing. ;)

Kernel I used for my tests and sample log booting from tftp server are attached, in case someone would like to do own tests. ;)
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 13409
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 659 Mal
Danksagung erhalten: 1364 Mal
Kontaktdaten:

Re: multiboot for UFS-912...

#2

Beitrag von BPanther »

j00zek hat geschrieben:Kathrein UFS-912 is quite good sat tuner, but it has one missing part - multiboot. I've read on several threads that it's impossible to have multiboot implemented on it.
Why is it impossible, on other receivers it will works and only here not? Very strange... :shock:

But very interesting that you have found a way to boot. :)
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
Boxen mit NMP und Unicable2 (Jess):
SH4: 7x UFS910 (1W, 128MB), 1x UFS910 (14W, 64MB), 1x UFS912, 2x UFS913, 1x AV700, 1x AV7000, 1x AV7500 (DVB-S/C/T), 1x Edision Argus Pingulux, 1x Vizyon820HD
MIPS: 1x VU+DUO, 1x VU+DUO2, 1x DM8000, 1x DM800
ARM: 3x AX 4K HD51 (DVB-S/SX/C/T/T2), 1x VU+Solo4K (DVB-S/SX (FBC)/C/T/T2 (DUAL)), 1x VU+Duo4K (DVB-S/SX (FBC)/C (FBC)), 3x E4HD 4K Ultra (DVB-S/SX/C/T/T2)
ARM: 1x VU+Duo4KSE (DVB-S/SX (FBC)/C (FBC)), 1x VU+Ultimo4K (DVB-S/SX (FBC)/C (DUAL)), 1x VU+Uno4KSE (DVB-S/SX (FBC)/C (FBC)), 2x VU+Zero4K (DVB-S/SX)
Schischu
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 14
Registriert: Do 14. Jul 2011, 14:47
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#3

Beitrag von Schischu »

Disabling ehci is a very very bad idea as you usb transfer performance will drop up to 90% !!!

Would be better to fix this bug in ehci ;-)
Actually its not a bug in the ehci driver but a bug in kathreins uboot reset function,
but we could change the ehci driver the way so it works.

But for that you are on your own as I just love flashimages and hate usb booting.

Edit:
Results:
- loading kernel from mtd2 and loading root from USB - works properly
- loading kernel from tftp server and loading root from USB - works properly
- loading kernel from USB and loading root from USB - kernel panic. it looks like kernel doesn't see any USB devices and currently I don't have any idea what to do with that. :(
Actually that is the same behaviour as if you have the ehci driver enabled, so I guess you have to start again with searching the error ;-)
j00zek
Developer
Developer
Beiträge: 89
Registriert: Do 21. Jul 2011, 22:51
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#4

Beitrag von j00zek »

Well,

I would kindly dissagree. I did several tests and didn't observe any drop in speed. ;)

With EHCI enabled, the following error and kernel panic occurs when using usb as a root.
stm-ehci stm-ehci.0: irq 169, io mem 0xfe1ffe00
stm-ehci stm-ehci.0: startup error -110
stm-ehci stm-ehci.0: USB bus 1 deregistered
stm-ehci: probe of stm-ehci.0 failed with error -110

....
Waiting 15sec before mounting root device...
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "sdb2" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 512 mtdblock0 (driver?)
1f01 3584 mtdblock1 (driver?)
1f02 4096 mtdblock2 (driver?)
1f03 8192 mtdblock3 (driver?)
1f04 65536 mtdblock4 (driver?)
1f05 53248 mtdblock5 (driver?)
1f06 77824 mtdblock6 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
But even it would be true, this still means there is possibility to create multiboot for UFS-912. Now I understand why. ;)

As the flash in ufs-912 is quite big and half of it is not used in fact, you can build dualboot and have 2 images in the flash. ;)

Anyway thanks for comments.
j00zek
Developer
Developer
Beiträge: 89
Registriert: Do 21. Jul 2011, 22:51
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#5

Beitrag von j00zek »

OK it looks I've found prefect solution to build multiboot for our ufs-912, with possiblity to start each image with its own kernel. :)
Basically it is possible to easily establish files sharing between kernels and uboot using partition:
0x300000-0x2800000 : "NAND ROOT -0x0030.0000-0x005F.FFFF"
With this approach, having oryginal image in flash, (for E2 images there is a need to change mtd partitons definition) we can put any kernel we like with bootargs script on the /softwares partition and boot it with root on usb, or flash if someone likes. ;)
The basic commands for uboot are:
set bootargs 'console=ttyAS0,115200 root=/dev/sdXY rw rootdelay=9 init=/bin/devinit coprocessor_mem=4m@0x40000000,4m@0x40400000 printk=1'
yrdm /softwares/myuImage 84000000;bootm 84000000
and our E2/N starts from usb partition. :)

The best thing is that similary BA for UFS-922 works, but instead of using nand partition uses ide disk. But the idea is exactly the same. So ammending it for ufs-912 shouldn't be a problem. :D
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 13409
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 659 Mal
Danksagung erhalten: 1364 Mal
Kontaktdaten:

Re: multiboot for UFS-912...

#6

Beitrag von BPanther »

Sounds very good - a MINI should be possible if i see it right. Great. 8)
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
Boxen mit NMP und Unicable2 (Jess):
SH4: 7x UFS910 (1W, 128MB), 1x UFS910 (14W, 64MB), 1x UFS912, 2x UFS913, 1x AV700, 1x AV7000, 1x AV7500 (DVB-S/C/T), 1x Edision Argus Pingulux, 1x Vizyon820HD
MIPS: 1x VU+DUO, 1x VU+DUO2, 1x DM8000, 1x DM800
ARM: 3x AX 4K HD51 (DVB-S/SX/C/T/T2), 1x VU+Solo4K (DVB-S/SX (FBC)/C/T/T2 (DUAL)), 1x VU+Duo4K (DVB-S/SX (FBC)/C (FBC)), 3x E4HD 4K Ultra (DVB-S/SX/C/T/T2)
ARM: 1x VU+Duo4KSE (DVB-S/SX (FBC)/C (FBC)), 1x VU+Ultimo4K (DVB-S/SX (FBC)/C (DUAL)), 1x VU+Uno4KSE (DVB-S/SX (FBC)/C (FBC)), 2x VU+Zero4K (DVB-S/SX)
bretterknaller
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 21
Registriert: Di 5. Jul 2011, 19:06
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#7

Beitrag von bretterknaller »

Wollte nochmal nachfragen ob ich es richtig verstanden habe, das es möglich ist, USB-Images auf der 912 zu starten?

mfg.

Bretterknaller
Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 13409
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 659 Mal
Danksagung erhalten: 1364 Mal
Kontaktdaten:

Re: multiboot for UFS-912...

#8

Beitrag von BPanther »

Richtig, die Möglichkeit besteht, derzeit aber nur über kleinere Umwege. Daher wäre ein MINI/MAXI oder alternativ BA natürlich bequemer.
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
Boxen mit NMP und Unicable2 (Jess):
SH4: 7x UFS910 (1W, 128MB), 1x UFS910 (14W, 64MB), 1x UFS912, 2x UFS913, 1x AV700, 1x AV7000, 1x AV7500 (DVB-S/C/T), 1x Edision Argus Pingulux, 1x Vizyon820HD
MIPS: 1x VU+DUO, 1x VU+DUO2, 1x DM8000, 1x DM800
ARM: 3x AX 4K HD51 (DVB-S/SX/C/T/T2), 1x VU+Solo4K (DVB-S/SX (FBC)/C/T/T2 (DUAL)), 1x VU+Duo4K (DVB-S/SX (FBC)/C (FBC)), 3x E4HD 4K Ultra (DVB-S/SX/C/T/T2)
ARM: 1x VU+Duo4KSE (DVB-S/SX (FBC)/C (FBC)), 1x VU+Ultimo4K (DVB-S/SX (FBC)/C (DUAL)), 1x VU+Uno4KSE (DVB-S/SX (FBC)/C (FBC)), 2x VU+Zero4K (DVB-S/SX)
bretterknaller
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 21
Registriert: Di 5. Jul 2011, 19:06
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#9

Beitrag von bretterknaller »

Also muss der Kernel im Flash sein und root kann auf Usb? Mit den oben geposteten Bootargs oben sollte es dann gehen?
j00zek
Developer
Developer
Beiträge: 89
Registriert: Do 21. Jul 2011, 22:51
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#10

Beitrag von j00zek »

Exactly :)

There are 2 possibilties:
1 - for original image, we can use /softwares yaafs partition which is accessible from kernel and uboot. So kernel and autoscript (containing uboot commands) should be written to it. Then we run /softwares/autoscript which loads /softwares/kernel with root=/dev/sdXY in the bootargs.

2 - for duckbox images is necessary to build kernel with a little bit different mtd block table:
dhcppc3:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00010000 "NOR U-BOOT : 0xA000.0000-0xA007.FFFF (512KB)"
mtd1: 00380000 00010000 "NOR R00T : 0xA008.0000-0xA03F.FFFF (3,5MB)"
mtd2: 00400000 00020000 "NAND KERNEL: 0x0000.0000-0x003F.FFFF ( 4MB)"
mtd3: 00800000 00020000 "NAND FW: 0x0040.0000-0x0097.FFFF ( 8MB)"
mtd4: 04000000 00020000 "NAND ROOT: 0x00C0.0000-0x04BF.FFFF ( 64MB)"
mtd5: 03100000 00020000 "NAND DATA: 0x04F0.0000-0x07FF.FFFF ( 49MB)"
mtd6: 04c00000 00020000 "NAND FULL WO DATA: 0x0000.0000-0x04BF.FFFF ( 78MB)"
mtd7: 00020000 00020000 "NAND Uboot AUTOSCR: 0x04C0.0000-0x04C1.FFFF (128KB)"
mtd8: 002e0000 00020000 "NAND 2ND KERNEL: 0x04C2.0000-0x04EF.FFFF ( 3MB)"
dhcppc3:~#
In this case we put 2nd kernel into mtd8 partition and autoscr into mtd7 and start it from uboot.

Nothing magical :)

regards,
j00zek

p.s.1 Now I'm building some kind of GUI (BA like)
p.s.2 Next step would be to finish work on BPanther neutrino USB image
Benutzeravatar
dbox-all
Moderator
Moderator
Beiträge: 2548
Registriert: Mo 4. Jul 2011, 21:15
Wohnort: HSK
Hat sich bedankt: 239 Mal
Danksagung erhalten: 110 Mal

Re: multiboot for UFS-912...

#11

Beitrag von dbox-all »

j00zek hat geschrieben:Exactly :)
p.s.1 Now I'm building some kind of GUI (BA like)
p.s.2 Next step would be to finish work on BPanther neutrino USB image
Super !!!!! Very, very good ... :lol: :lol: :lol: Thanks !!

mfg
mfg

--------------------------------------------------------------
|39.0E-28.2E-23,5E-19.2E-16.0E-13.0E-9.0E-4.9E-0.8W|
|-- 2x UFS910 -3x UFS912 -3x UFS913 -2x AX HD51 --|
--------------------------------------------------------------
Bild
Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 13409
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 659 Mal
Danksagung erhalten: 1364 Mal
Kontaktdaten:

Re: multiboot for UFS-912...

#12

Beitrag von BPanther »

If it ready for booting from USB we will make together the rest (rcS and maybe other)... ;)
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
Boxen mit NMP und Unicable2 (Jess):
SH4: 7x UFS910 (1W, 128MB), 1x UFS910 (14W, 64MB), 1x UFS912, 2x UFS913, 1x AV700, 1x AV7000, 1x AV7500 (DVB-S/C/T), 1x Edision Argus Pingulux, 1x Vizyon820HD
MIPS: 1x VU+DUO, 1x VU+DUO2, 1x DM8000, 1x DM800
ARM: 3x AX 4K HD51 (DVB-S/SX/C/T/T2), 1x VU+Solo4K (DVB-S/SX (FBC)/C/T/T2 (DUAL)), 1x VU+Duo4K (DVB-S/SX (FBC)/C (FBC)), 3x E4HD 4K Ultra (DVB-S/SX/C/T/T2)
ARM: 1x VU+Duo4KSE (DVB-S/SX (FBC)/C (FBC)), 1x VU+Ultimo4K (DVB-S/SX (FBC)/C (DUAL)), 1x VU+Uno4KSE (DVB-S/SX (FBC)/C (FBC)), 2x VU+Zero4K (DVB-S/SX)
j00zek
Developer
Developer
Beiträge: 89
Registriert: Do 21. Jul 2011, 22:51
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#13

Beitrag von j00zek »

1.Disclaimer:
This is first ALPHA version of DuckBA scripts!!!
It is required that user understands what he is doing. ;)
In different words - everything you are doing, you are doing on your own risk.
Author take no any responsibilities for damaging tuner or other issues.
Thanks to All Duckbox defelopers and especially GOst, nit, schichu.

2a.Installation for duckboxes (E2/Neutrino):
DuckBA uses mtdblock3 partition to exchange files between kernel and uboot. As this partition is in standard image mapped to /boot folder,
DuckBAS initialisation simply changes configuration of E2/N to free this partition up.
Steps:
- Upload DuckBA.tar.gz archive to /tmp folder
- Start telnet
- cd /
- tar -xzf /tmp/DuckBA.tar.gz
- cd /DuckBA
- ./DBA.install duckbox
- Reboot tuner
- Start telnet
- cd /DuckBA
- ./DBA.install duckbox
- choose Y when asked
- Reboot tuner
If all went properly, there should be a file /DuckBA/dba.log written with the content:
[DBA] Initialise bootmenu
[DBA] No images found, skipping...

2b.Installation for original image:
- not implemented yet

3.Pendrive preparation:
- use your favorite software (e.g. createmini) to prepare partitions on a pendrive.

4.extract image:
- Use standard tar command to extract image on a pendrive or....
- Start telnet
- cd /DuckBA
- ./DBA.manage extract <archive name> <device> [<label>](e.g. ./DBA.manage extract /tmp/BPanther.tar.gz /dev/sda1 BPanther)
NOTE: It's alwasy good practice to set meaningful label. ;)

5. Add new item to bootmenu:
- cd /DuckBA
- ./DBA.manage add <menu item name> <device> [<device 4 uboot>] [PERMANENT] [dhcp]
- where:
<device> can be: /dev/sd[a-z][1-9], or label of the partition
<device 4 uboot>:/dev/sd[a-z][1-9] - device how uboot see disk
PERMANENT: to set permanent boot from given image
dhcp: to disable static IP assigments during kernel start

6. Remove item from bootmenu:
- Simply delete specific file in the /DuckBA/images folder

7. Manually Activate item for next boot:
- cd /DuckBA
- ./DBA.manage activate <device> [<device 4 uboot>] [PERMANENT] [dhcp]
- where:
<device> can be: /dev/sd[a-z][1-9]
label of the partition
flash - to activate booting from flash
last - to activate booting from lastly configured USB partition
<device 4 uboot>:/dev/sd[a-z][1-9] - device how uboot see disk
PERMANENT: to set permanent boot from given image
dhcp: to disable static IP assigments during kernel start

8. tools description:
- img2targz.sh bash script to export files from img image to .tar.gz file, has to be run on PC linux
- rescue script is a script which repairs broken bootargs and sets them to be DuckBA ready in case something will go wrong.

All DuckBA files and images in tar.gz format can be find below:
https://skydrive.live.com/?cid=cf8acf60 ... 81F1CE!358

EDIT: Version 0,2 arrived with lot of stability changes
Zuletzt geändert von j00zek am Mi 3. Aug 2011, 08:25, insgesamt 1-mal geändert.
bretterknaller
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 21
Registriert: Di 5. Jul 2011, 19:06
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#14

Beitrag von bretterknaller »

Wie mache ich einen Tuner reboot? oder ist damit ein einfacher reboot gemeint?

Komme schon beim entpacken nicht weiter oder was ist an dem befehl flasch?


./DBA.manage extact /tmp/USB_HAARP_GIT-2359_PKT-990.tar.gz /dev/sda2


mount

/dev/sda2 on /media/autofs/sda2 type ext2 (rw,noatime,nodiratime)
j00zek
Developer
Developer
Beiträge: 89
Registriert: Do 21. Jul 2011, 22:51
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: multiboot for UFS-912...

#15

Beitrag von j00zek »

bretterknaller hat geschrieben:Wie mache ich einen Tuner reboot? oder ist damit ein einfacher reboot gemeint?
Just use reboot
bretterknaller hat geschrieben: Komme schon beim entpacken nicht weiter oder was ist an dem befehl flasch?


./DBA.manage extact /tmp/USB_HAARP_GIT-2359_PKT-990.tar.gz /dev/sda2


mount

/dev/sda2 on /media/autofs/sda2 type ext2 (rw,noatime,nodiratime)
nothing. ;)

Simply for some reason sda2 is blocked by tuner and script cannot unmount it to format.

You can:

- try new version of DuckBA (available in download section of this forum too. You have to go through full installation process as it is a little bit different), or
- unmount sda2 manually before starting extract script
- extract archive manually with tar to the partition you like.

p.s.

I've found that HAARP image has broken kernel inside, for now use NIBIRU for tests which I double-checked works perfectly.
Antworten

Zurück zu „UFS912 - USB“