<topi`>
DuClare_: the Rockchip wiki talks about sectors. so 512 bytes.
<DuClare_>
Ok, idk where y'all are getting this from but I just append u-boot.bin to my spl image and it works
<DuClare_>
And I'm pretty sure other boards do that too
<DuClare_>
Sector 0x4000 would be somewhere in the middle of a kernel :)
<topi`>
DuClare_: I did just as you said, cat'd it at the end of the idbloader, and TADA
<topi`>
now I have uboot prompt
<topi`>
finally, finally I can load the linux kernel
<robmur01>
From what I remember, main-stage-appended-to-spl may have been a thing a while ago before CONFIG_*_BACK_TO_BROM was commonplace
<DuClare_>
Dunno, I've used back to brom from day one
<DuClare_>
And aiui back to brom is required for this setup anyway
<topi`>
ok, then a linux image. I need to have a ext2 filesystem at a certain sector offset?
<topi`>
but I think UBOOT knows GPT partitioning
<DuClare_>
It knows gpt, mbr
<DuClare_>
So you can put your partition where you like
<DuClare_>
(Or just read the kernel from a fixed offset wihout filesystem..)
<DuClare_>
if you used the genimage.cfgs I pointed you to, they use mbr partitions
<DuClare_>
(hdimage{} at the start)
<topi`>
I need to find out an address where I can load the kernel
field^Mop has joined #linux-rockchip
<robmur01>
there should be sane defaults in the environment - on my RK3288 box I installed a distro to the standard GPT boot/root partitions, wrote an extlinux.conf entry, and it all "just worked" :)
<mnemoc>
hi, what's the tool usually used to create the gpt images that get programmed via usb?
<mnemoc>
i doubt its actually a dd-ed image...
damex has quit [Quit: damex]
damex has joined #linux-rockchip
mnemoc has quit [Quit: leaving]
<robmur01>
The actual "firmware upgrade" images? Probably one of RK's proprietary tools, although the format isn't *that* complicated - the rkflashtool repo has a thing for unpacking them
<robmur01>
the sections inside are themselves packed as a mess of other magic RK formats and Android sparse images
<nomis>
I am creating them using the yocto-"wic" mechanism.
<nomis>
not sure if that is available standalone
mnemoc has joined #linux-rockchip
<mnemoc>
robmur01, nomis: thanks for the pointer
<mnemoc>
pointers*
leah2 has quit [Ping timeout: 260 seconds]
leah2 has joined #linux-rockchip
field^Mop has quit [Ping timeout: 256 seconds]
fALSO has joined #linux-rockchip
<fALSO>
Hello
<fALSO>
Is there any guide on how to put the OS on a USB HDD ?
<fALSO>
on a rockpro64
<fALSO>
I already have it running on a SD card, but if I want to boot the OS from an HDD how can i DO it?
<fALSO>
just delete the OS partition of the SD CARD?
<fALSO>
just leave the bootloader there?
<robmur01>
to first approximation, just change the "root=..." parameter passed to the kernel
<fALSO>
humm... on boot.cmd
<fALSO>
ok robmur01
<robmur01>
if you want to load the kernel itself from USB as well, tweak the U-Boot boot script accordingly
<fALSO>
gonna see if the performance on a hdd is better
<fALSO>
i really hate SD cards
<fALSO>
im running gentoo on mine but...
<fALSO>
configure script - 5min
<fALSO>
actual compile - 1min
<fALSO>
the IO is crap
<fALSO>
part uuid ${devtype} ${devnum}:${bootpart} uuid