ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
maze-BUG has quit [Ping timeout: 256 seconds]
sigmaris has quit [Quit: ZNC - https://znc.in]
sigmaris has joined #linux-rockchip
maze-BUG has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
ullbeking has quit [Ping timeout: 260 seconds]
myfreeweb has quit [Ping timeout: 256 seconds]
ullbeking has joined #linux-rockchip
ojn has quit [Ping timeout: 258 seconds]
vstehle has quit [Ping timeout: 260 seconds]
ullbeking has quit [Max SendQ exceeded]
ullbeking has joined #linux-rockchip
myfreeweb has joined #linux-rockchip
ojn has joined #linux-rockchip
vagrantc has joined #linux-rockchip
vagrantc has quit [Ping timeout: 272 seconds]
vstehle has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
camus1 has joined #linux-rockchip
kaspter has quit [Ping timeout: 246 seconds]
camus1 is now known as kaspter
JohnDoe_71Rus has joined #linux-rockchip
jaganteki has joined #linux-rockchip
lerc has joined #linux-rockchip
kaspter has quit [Ping timeout: 246 seconds]
kaspter has joined #linux-rockchip
camus1 has joined #linux-rockchip
kaspter has quit [Ping timeout: 264 seconds]
camus1 is now known as kaspter
vicencb has joined #linux-rockchip
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
lopsided98 has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 246 seconds]
indy has quit [Ping timeout: 260 seconds]
kaspter has quit [Ping timeout: 260 seconds]
camus1 has joined #linux-rockchip
camus1 is now known as kaspter
indy_ has joined #linux-rockchip
indy_ is now known as indy
jaganteki has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
mayab76 has joined #linux-rockchip
matthias_bgg_ has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
mayab76 has quit [Ping timeout: 265 seconds]
kevery has quit [Ping timeout: 258 seconds]
vicencb has quit [Ping timeout: 246 seconds]
vicencb has joined #linux-rockchip
damex has quit [Quit: damex]
damex has joined #linux-rockchip
matthias_bgg_ has quit [Quit: Leaving]
matthias_bgg has joined #linux-rockchip
mayab76 has joined #linux-rockchip
<topi`> U-Boot SPL 2020.07-rc4-00022-gbe79009f3b (Jun 12 2020 - 09:47:50 +0000)
<topi`> Trying to boot from BOOTROM
<topi`> Returning to boot ROM...
<topi`> ok, does anybody know why SPL can't load u-boot proper?
<topi`> let me check my offsets...
<topi`> but this BOOTROM thing sounds really suspicious
<robmur01> AFAIK, the SPL calls back into ROM to get that to load the main stage image, it doesn't load it directly
<robmur01> little need to reinvent the image-loading code that's already there ;)
<DuClare_> Did you append u-boot.bin to the spl image?
<topi`> nope
<topi`> I just took the idbloader.bin as uboot readied it. 38K.
<topi`> -rw-r--r-- 1 topi topi 34816 Jun 12 09:55 idbloader.img
<topi`> so, just cat >>foo the uboot.bin to it? or maybe .img?
<topi`> there's u-boot-dtb.bin, u-boot-dtb.img and stuff
damex has quit [Quit: damex]
damex has joined #linux-rockchip
<robmur01> usually the main stage is either uboot.img or u-boot.itb, which expects to be flashed at 0x4000
<DuClare_> 0x4000 what?
<robmur01> offset in the SD card/eMMC
<DuClare_> unit??
<topi`> dd if=u-boot-dtb.img seek=65536 of=/dev/mmcblk1
<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
<fALSO> setenv bootargs console=ttyS2,1500000n8 root=PARTUUID=${uuid} rw rootwait earlycon=uart8250,mmio32,0xff1a0000
<fALSO> i have this on boot.cmd
<fALSO> problably just check the uuid of the hdd and replace ${uuid} there with the real id?
gavlee has quit []
gavlee has joined #linux-rockchip
vicencb has quit [Quit: Leaving.]
vicencb has joined #linux-rockchip
sb35 has joined #linux-rockchip
klokken has quit [Ping timeout: 240 seconds]
klokken has joined #linux-rockchip
klokken has quit [Remote host closed the connection]
klokken has joined #linux-rockchip
mayab76 has quit [Ping timeout: 260 seconds]
<fALSO> managed to do it!
<fALSO> =)
<fALSO> trying if the performance is better
<fALSO> connected it to a USB3 port, but i dont think my SATA to USB thingy isnt USB3
<fALSO> >>> Emerging (1 of 78) sys-devel/gcc-10.1.0-r1::gentoo
<fALSO> :)
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
field^Mop has joined #linux-rockchip
vagrantc has joined #linux-rockchip
vicencb has quit [Quit: Leaving.]
vagrantc has quit [Quit: leaving]
field^Mop has quit [Ping timeout: 246 seconds]