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
LargePrime has joined #linux-rockchip
nighty-- has joined #linux-rockchip
wadim_ has quit [Ping timeout: 260 seconds]
wadim_ has joined #linux-rockchip
anarsoul|3 has quit [Ping timeout: 256 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
cnxsoft has joined #linux-rockchip
adj_ has quit [Ping timeout: 256 seconds]
adj_ has joined #linux-rockchip
lurchi_ is now known as lurchi__
nots has quit [Quit: Page closed]
paulk-leonov has quit [Ping timeout: 260 seconds]
paulk-leonov has joined #linux-rockchip
LargePrime has quit [Ping timeout: 260 seconds]
LargePrime has joined #linux-rockchip
tl_lim has quit [Ping timeout: 260 seconds]
tl_lim has joined #linux-rockchip
lurchi_ has joined #linux-rockchip
lurchi__ has quit [Ping timeout: 264 seconds]
tl_lim has quit [Ping timeout: 260 seconds]
tl_lim has joined #linux-rockchip
vstehle has joined #linux-rockchip
jailbox has quit [Ping timeout: 276 seconds]
<hgs> hi all, what is the bootargs & other uboot environment variable that need to be set to mount rootfs built using rootfs?
<beeble> setenv bootargs root=/dev/whereveryouputit
<beeble> and depending on your devicetree a console=/dev/ttyyouareusing
sb35 has quit [Ping timeout: 256 seconds]
Omegamoon has joined #linux-rockchip
xerpi has joined #linux-rockchip
xerpi has quit [Remote host closed the connection]
xerpi has joined #linux-rockchip
<hgs> beeble: sorry i meant built using buildroot that is available in rockchip repo?
<hgs> bootargs for rootfs that is built using buildroot from rockchip repo
<hgs> beeble: ok thanks will experiment
<beeble> it generates a tar with the rootfs right?
<beeble> looks like it as there is no genimage config
<beeble> so whatever rootdevice you are putting it is your rootfs
<hgs> rootfs.ext2 is generated and then i use mkfirmware.sh and update using rkflash.sh
<beeble> here as an example, adapt the device setenv bootargs root=/dev/mmcblk0p1 rw rootwait
<hgs> beeble: i am newbie are there any reference documents on how these partitions are assigned, named and mounted
<hgs> i see some images called oem.img, userdata.img, recovery.img misc.img getting created , but understand what are those and how to change these partitions map? any references
<beeble> this would be in your rkflash.sh
<beeble> probably :)
<beeble> never used the rockchip provided layout
<beeble> http://opensource.rock-chips.com/wiki_Boot_option#Boot_flow looks like they use partition 5 for the rootfs
cnxsoft has quit [Ping timeout: 248 seconds]
<hgs> beeble: so the sector or the address of the images are fixed?
<hgs> beeble: i think i hav to go thru the reference u had mentioned, thanks
<beeble> looks like the partitionmap is somewhat fixed and rkflashtool is getting partitionnumbers as an argument
<hgs> beeble: looks like they using new upgrade tool which means wiki is old??
jailbox has joined #linux-rockchip
<hgs> i see some information in parameter.txt file regarding partion mapping
<beeble> i'm sorry. i don't follow their image development closely. but the wiki is probably the second best source for information for their tools
<beeble> the best is the sourcecode itself :)
tl_lim has quit [Ping timeout: 245 seconds]
tl_lim has joined #linux-rockchip
<hgs> beeble: yep, just need help on where to look (reference)
<beeble> so my best guess would be to look at your rkflash.sh, see at what partition your ext image gets written
<beeble> and set your bootargs to that
<beeble> but i would have also guessed that if you are using the rockchip tooling everything would work out of the box
<beeble> where does it actually fail?
xerpi has quit [Remote host closed the connection]
xerpi has joined #linux-rockchip
<hgs> beeble: i saw some error message during uboot process "ANDROID: reboot reason: "recovery""
yann|work has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-rockchip
<hgs> beeble: so i thought the default bootargs were not working for mounting rootfs from buildroot, you suggestions are helpful and i will try to dig in to it thanks
<hgs> yocto for rk3399 is available? any suggestion on which one to go for buildroot or yocto?
<beeble> there are rockchip overlays available. but not a fan of OE/yocto so maybe not the best one suggest it :)
<beeble> hmm the error message is from android_bootloader.c
<beeble> that is all rockchip own stuff not available in mainline
<hgs> beeble: ok, buildroot it is
<beeble> on what board are you anyway?
<hgs> beeble: pico right now
<beeble> ok, then i can't just suggest to go with mainline
tl_lim has quit [Ping timeout: 240 seconds]
tl_lim has joined #linux-rockchip
BenG83 has quit [Ping timeout: 256 seconds]
yann|work has joined #linux-rockchip
tigit has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
BenG83 has joined #linux-rockchip
afaerber has joined #linux-rockchip
afaerber has quit [Client Quit]
fysa has quit [Remote host closed the connection]
fysa has joined #linux-rockchip
tl_lim has quit [Read error: Connection reset by peer]
matthias_bgg has joined #linux-rockchip
<stdint> hgs, You can found yocto on my github
<stdint> but it is used for the develop branch, https://github.com/hizukiayaka/meta-rockchip/tree/github
<stdint> its based on a quite new https://github.com/hizukiayaka/poky
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-rockchip
nighty-- has quit [Quit: Disappears in a puff of smoke]
tigit has quit [Quit: Page closed]
tigit has joined #linux-rockchip
BenG83 has quit [Remote host closed the connection]
<hgs> stdint: thanks stdint, iam working for product rite now
xerpi has quit [Remote host closed the connection]
BenG83 has joined #linux-rockchip
afaerber has joined #linux-rockchip
paulk-leonov has quit [Ping timeout: 240 seconds]
sb35 has joined #linux-rockchip
sb35 has quit [Ping timeout: 240 seconds]
sb35 has joined #linux-rockchip
sb35 has quit [Quit: Leaving]
sb35 has joined #linux-rockchip
LargePrime has quit [Remote host closed the connection]
paulk-leonov has joined #linux-rockchip
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-rockchip
aalm has quit [Ping timeout: 268 seconds]
cnxsoft has quit [Quit: cnxsoft]
JohnDoe_71Rus has joined #linux-rockchip
BenG83 has quit [Remote host closed the connection]
kaspter has quit [Quit: kaspter]
tigit has quit [Ping timeout: 252 seconds]
aalm has joined #linux-rockchip
return0e has quit [Remote host closed the connection]
tllim has joined #linux-rockchip
athidhep has joined #linux-rockchip
athidhep has quit [Changing host]
athidhep has joined #linux-rockchip
sb35 has quit [Ping timeout: 248 seconds]
athidhep has quit [Read error: Connection reset by peer]
sb35 has joined #linux-rockchip
afaerber has quit [Quit: Leaving]
tl_lim has joined #linux-rockchip
tllim has quit [Ping timeout: 245 seconds]
yann|work has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 245 seconds]
anarsoul|3 has joined #linux-rockchip
tl_lim has quit [Ping timeout: 256 seconds]
Kelsar has joined #linux-rockchip
tl_lim has joined #linux-rockchip
<Kelsar> Hi, how are my chances to get a custom linux running on a RK3399?
<beeble> good
aalm has quit [Ping timeout: 256 seconds]
yann|work has joined #linux-rockchip
<Kelsar> beeble: yeah, i just looked through the github stuff for uboot
<Kelsar> building crossdev env now
<vagrantc> pretty good support in both mainline u-boot and kernel, even
<Kelsar> vagrantc: good news for me, i think atleast
<Kelsar> question is, will that board fit into the G80 Keyboard case...
<beeble> that is a bit flat...
<Kelsar> a rpi fits...
<Kelsar> since the ethernet is the tallest thing, i may get lucky
<beeble> ok, more space in a g80 then i guessed
<beeble> ah
<beeble> thats mechanical right?
<beeble> yes, cherry mx
<Kelsar> yes, it is quiet big to be honest
<beeble> ok, that gives you a some space
<beeble> i was thinking of the smaller rubberdome stuff
<Kelsar> liek that ryzen, crossdev env is ready :)
JohnDoe9 has joined #linux-rockchip
unics has joined #linux-rockchip
JohnDoe_71Rus has quit [Ping timeout: 245 seconds]
<Kelsar> make[1]: arm-none-eabi-gcc: Command not found
<Kelsar> files before compiled fine with my compiler...
<beeble> what are you trying to build?
<Kelsar> arm-trusted-firmware
<beeble> then you need also a arm toolchain in addition to the arm64 one
<Kelsar> ah ok
<beeble> because there is a cortex-m0 part in the atf that gets build
<Kelsar> feels good to learn something again
<beeble> M0_CROSS_COMPILE if you want to overwrite the default
<Kelsar> ty, i guess i need that later, or fiddle with PATH
<vagrantc> some smart projects split the cortex-m0 into a separate source repository :)
<beeble> vagrantc: but get flak from everyone doing so and therefore merging it back again :)
<Kelsar> is it arm or armeb?
<vagrantc> beeble: but it's the only one i've ever actually gotten to work! :)
<vagrantc> the cortex-m0 uses a baremetal arm compiler
<beeble> Kelsar: if you are on debian you can use the gcc-arm-none-eabi package
<Kelsar> beeble: i am not, that would be boring ;)
<beeble> if you want to build your own with crosstools
<Kelsar> atm using crossdev with gentoo, will need that later anyways
<beeble> ok, no idea about gentoo crossdev :)
* vagrantc hasn't even looked at upstream ATF lately
<vagrantc> wonder if it works for anything yet
<Kelsar> before flashing i will need to get some cables to connect my serial to the board anyways
<beeble> you want a arm cortex m0 bare metal
<Kelsar> ty again, likely need to read up about all that again
<Kelsar> - newlib [bare metal/no operating system]
<Kelsar> sound about right
unics has quit [Quit: Leaving]
JohnDoe9 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
return0e has joined #linux-rockchip
nots has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
return0e has quit [Remote host closed the connection]
tl_lim has quit [Ping timeout: 260 seconds]
aalm has joined #linux-rockchip
tl_lim has joined #linux-rockchip
vagrantc has quit [Ping timeout: 265 seconds]
<Kelsar> got my bare metal compiler running and atf build like a charm
vagrantc has joined #linux-rockchip
<Ke> Kelsar: does it run?
<Kelsar> Ke: far away from testing it, right now u-boot does not like to build
<Ke> that is in my experience the bigger problem
<Ke> linaro toolchains are quite good also
<Kelsar> unset LANG
<Kelsar> downgrade dtc seems to do the trick
matthias_bgg has quit [Ping timeout: 268 seconds]
<Kelsar> what is the difference between u-boot spl and rockchip miniloader?
<beeble> does pretty much the same
<beeble> but miniloader is closed source
<beeble> spl is a minimal loader that can init dram and load a complete u-boot
vagrantc has quit [Ping timeout: 265 seconds]
<Kelsar> i am currently reading http://opensource.rock-chips.com/wiki_Boot_option i hope it will not confuse me even more ^^
<beeble> what board do you have?
<Kelsar> NanoPC-T4
<Kelsar> boot.img is basically /boot and rootfs.img... well rootfs
<Kelsar> ?
<ccaione> no, just the kernel and the DTB + extlinux.conf for the distro booting
<ccaione> you can of course put them into the rootfs
<Kelsar> guess i can replace extlinux by grub, can I?
<Kelsar> ah u-boot just uses that config file
tl_lim has quit [Ping timeout: 240 seconds]
<ccaione> `extlinux.conf` is just a text file read by U-Boot to gather the information about kernel parameters, rootfs, etc...
tl_lim has joined #linux-rockchip
<ccaione> you can use the old `boot.scr` or whatever (see `README.distro`)
<Kelsar> I see, I can just chainload whatever I want, if i want to
<Kelsar> basicall i don't want to use the builtin mmc storage atall, aside from booting
<Kelsar> pretty huge boot partition then ^^
<ccaione> you can put the boot partition on the SD if you want
vagrantc has joined #linux-rockchip
<Kelsar> i guess just from /boot the builtin mmc won't wear out too fast. for OS i will add a nvme ssd
<Kelsar> I don't trust that thing to much
paulk-leonov has quit [Ping timeout: 264 seconds]
tl_lim has quit [Ping timeout: 276 seconds]
tl_lim has joined #linux-rockchip
vagrantc has quit [Ping timeout: 256 seconds]
paulk-leonov has joined #linux-rockchip
tl_lim has quit [Ping timeout: 256 seconds]
tl_lim has joined #linux-rockchip
return0e has joined #linux-rockchip
vagrantc has joined #linux-rockchip
lkcl has quit [Ping timeout: 245 seconds]
vagrantc has quit [Ping timeout: 276 seconds]
vagrantc has joined #linux-rockchip
anarsoul|2 has joined #linux-rockchip
anarsoul|3 has quit [Ping timeout: 260 seconds]
tl_lim has quit [Read error: Connection reset by peer]
tl_lim has joined #linux-rockchip
lkcl has joined #linux-rockchip
afaerber has joined #linux-rockchip
Omegamoon has left #linux-rockchip [#linux-rockchip]
BenG83 has joined #linux-rockchip
yann|work has quit [Ping timeout: 265 seconds]
return0e has quit [Remote host closed the connection]
LargePrime has joined #linux-rockchip
vstehle has quit [Ping timeout: 255 seconds]
lurchi_ has quit [Ping timeout: 240 seconds]
lurchi_ has joined #linux-rockchip
paulk-leonov has quit [Ping timeout: 276 seconds]
paulk-leonov has joined #linux-rockchip
return0e has joined #linux-rockchip
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-rockchip
return0e has quit [Client Quit]
return0e has joined #linux-rockchip