This topic is for developing for a new / better uBoot for the Suttle KD20 NAS.
Maingoals:
- Upgrade Uboot to 2014.10 newer
- Full SATA boot (stage1, uBoot, kernel, rootfs) -> Important to make a serial/UART connection not nessesary
- Boot from USB (kernel, rootfs)
(- Boot from SD/MMC)
Status Quo:
- vendors uBoot can be booted form sata but did not load the disk.
- other uboots (bodhi, kref's) can boot from Sata but only load one disk.
- 2014.10 uBoot from openwrt can be loaded from vendors uboot
- usb did not working with any uBoot
Data:
Vendors Uboot source (there are 2?!)
uBoot+spl
uBoot
---------------------------------------------------------------------------------------------------------------------------
As my primary objectiv is to make a full sata boot my first attempt was just copy vendors spl + newer uBoot (2014.10) to a harddisk with oxnas_sata_boot script from warhead.
uBoot is 562 kB big (vendors 120-170Kb)
So I in my opinon it looks like uBoot 2014.10 is to big to load from sata sectors.
If I boot the vendors uBoot to load kernel from disk -> sata disk won't inital and i don't know why.
So I like either to modify the spl (vendor) to enable fat,ext2 or ext4 uBoot or modify Kref's spl to enable the second disk. An other try would be to shrink down a newer uBoot to get it in disk sector.
But I have no idea how to do one of these things, so I hope someone can help me out here with some ideas :-)
Maingoals:
- Upgrade Uboot to 2014.10 newer
- Full SATA boot (stage1, uBoot, kernel, rootfs) -> Important to make a serial/UART connection not nessesary
- Boot from USB (kernel, rootfs)
(- Boot from SD/MMC)
Status Quo:
- vendors uBoot can be booted form sata but did not load the disk.
- other uboots (bodhi, kref's) can boot from Sata but only load one disk.
- 2014.10 uBoot from openwrt can be loaded from vendors uboot
- usb did not working with any uBoot
Data:
Vendors Uboot source (there are 2?!)
uBoot+spl
uBoot
---------------------------------------------------------------------------------------------------------------------------
As my primary objectiv is to make a full sata boot my first attempt was just copy vendors spl + newer uBoot (2014.10) to a harddisk with oxnas_sata_boot script from warhead.
uBoot is 562 kB big (vendors 120-170Kb)
Stage-1 Bootloader 2015-01.21-21:48:56 Attempting to set PLLA to 800MHz ... plla_ctrl0 : 0x0000030A plla_ctrl1 : 0x00400000 plla_ctrl2 : 0x007F0068 plla_ctrl3 : 0x00000193 PLLA Set Setup memory, testing Reading disk 00 Sector : 0x0000009A Hdr len: 0x0008935C Hdr CRC: 0x16FD462A too big Reading disk 01 Sector : 0x0000DF78 Hdr len: 0x00000000 Hdr CRC: 0x00000000 length 0 Reading disk 10 Sector : 0x0000009A Hdr len: 0xA1A2A3A4 Hdr CRC: 0xB1B2B3B4 read failed Reading disk 11 Sector : 0x0000DF78
So I in my opinon it looks like uBoot 2014.10 is to big to load from sata sectors.
If I boot the vendors uBoot to load kernel from disk -> sata disk won't inital and i don't know why.
So I like either to modify the spl (vendor) to enable fat,ext2 or ext4 uBoot or modify Kref's spl to enable the second disk. An other try would be to shrink down a newer uBoot to get it in disk sector.
But I have no idea how to do one of these things, so I hope someone can help me out here with some ideas :-)