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
_whitelogger has joined #linux-rockchip
lurchi_ is now known as lurchi__
r1kaomsk has quit []
vagrantc has quit [Quit: leaving]
lurchi__ is now known as lurchi_
ted_ has joined #linux-rockchip
phinxy has quit [Read error: Connection reset by peer]
ted_ has left #linux-rockchip [#linux-rockchip]
gnufan has quit [Ping timeout: 252 seconds]
gnufan has joined #linux-rockchip
lurchi_ is now known as lurchi__
kever has joined #linux-rockchip
lurchi__ is now known as lurchi_
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
cnxsoft has joined #linux-rockchip
gnufan has quit [Ping timeout: 240 seconds]
gnufan has joined #linux-rockchip
gnufan has quit [Ping timeout: 260 seconds]
nighty- has joined #linux-rockchip
gnufan has joined #linux-rockchip
lurchi_ is now known as lurchi__
gnufan has quit [Ping timeout: 248 seconds]
gnufan has joined #linux-rockchip
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-rockchip
gnufan has quit [Ping timeout: 248 seconds]
gnufan has joined #linux-rockchip
kever has quit [Quit: No Ping reply in 180 seconds.]
kever has joined #linux-rockchip
gnufan has quit [Ping timeout: 252 seconds]
gnufan has joined #linux-rockchip
nobe has quit [Ping timeout: 240 seconds]
gnufan has quit [Ping timeout: 252 seconds]
nobe has joined #linux-rockchip
gnufan has joined #linux-rockchip
lurchi_ has joined #linux-rockchip
lurchi__ has quit [Ping timeout: 252 seconds]
gnufan has quit [Ping timeout: 248 seconds]
gnufan has joined #linux-rockchip
LongChair has joined #linux-rockchip
nighty- has quit [Ping timeout: 248 seconds]
nighty- has joined #linux-rockchip
phinxy has joined #linux-rockchip
phinxy has quit [Client Quit]
<diego71> wzyy2: thanks for the link. emmc was formatted so it doesn't have a reserved1 partition
<diego71> atm I'm booting from a SD so I'm fine with the u-boot variable. Thanks anyway, I've learned interest thing ...
gnufan has quit [Ping timeout: 260 seconds]
gnufan has joined #linux-rockchip
<Tef6> Hey does anyone have experience on power or thermal management on Rockchip SoCs?
wadim_ has joined #linux-rockchip
phinxy has joined #linux-rockchip
phinxy has quit [Read error: Connection reset by peer]
matthias_bgg has joined #linux-rockchip
BenG83 has quit [Quit: Leaving]
<mmind00> Tef6: you might want to just write your question ... then you'll see if anyone has experience in that area :-)
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
<rperier> do we have a procedure in uboot mainline for booting uboot from eMMC ? (via mkimage + upgrade_tool)
<beeble> rperier: i'm writing you a mail about that right now. just have to test it if it works like i would think :)
<rperier> ok , thanks :)
gnufan has quit [Ping timeout: 248 seconds]
gnufan has joined #linux-rockchip
<beeble> sent
<paulk-gagarine> via, so basically you can't boot from emmc and sd/usb boot is disabled?
phinxy has joined #linux-rockchip
matthias_bgg has quit [Quit: Leaving]
skjensen has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
skjensen1 has joined #linux-rockchip
skjensen has quit [Quit: Page closed]
phinxy has quit [Read error: No route to host]
wzyy2 has quit [Ping timeout: 276 seconds]
kever has quit [Quit: No Ping reply in 180 seconds.]
kever has joined #linux-rockchip
nighty- has quit [Quit: Disappears in a puff of smoke]
wzyy2 has joined #linux-rockchip
BenG83 has joined #linux-rockchip
kloczek has joined #linux-rockchip
gnufan has quit [*.net *.split]
cnxsoft has quit [*.net *.split]
dianders has quit [*.net *.split]
cnxsoft has joined #linux-rockchip
gnufan has joined #linux-rockchip
r1kaomsk_work has joined #linux-rockchip
<rperier> beeble: thanks for details, so maskrom is working (I found details on forum.geekbox.tv) and I have tried uboot for emmc
<rperier> it still does not boot, but I am investigating, I can flash to emmc :)
dianders has joined #linux-rockchip
<r1kaomsk_work> rperier, what are you talking about?
<rperier> mhhhh not the same uart apparently, so it might explain the issue, I think I got it
<rperier> (stupid stuff)
<rperier> r1kaomsk_work: I try to boot mainline uboot from emmc on the geekbox rk3368
<via> paulk-gagarine: correct
<via> the only way i know how to fix this is downloading the google chrome usb key imae
<paulk-gagarine> via, what I would do is enable developer mode and external media boot by enabling the GBB flags on the boot image
<paulk-gagarine> via, you'd need a SPI flasher for that
<paulk-gagarine> and opening the laptop
<paulk-gagarine> otherwise, yeah, you can try the recovery image, but I'm not sure it works well if you have messed with the emmc layout
<via> i think it just wipes the whole partition table
<paulk-gagarine> via, that will erase your data though
<via> yeah
<via> wrt the flags, i imagine i'd read the spi flash, change the bits, write it back?
<paulk-gagarine> yup
<via> my long term plan as to flash libreboot or something anyway
<via> or coreboot
<paulk-gagarine> I have a script that can help with that
<via> oh?
<paulk-gagarine> http://git.code.paulk.fr/gitweb/?p=libettereboot.git;a=blob;f=projects/cros-scripts/install/cros-firmware-prepare;h=90006cf6fc216b7502ab5487e1ebc574ac3fa498;hb=HEAD
<paulk-gagarine> ./cros-firmware-prepare gbb flash.img enable [the flag]
<via> much appreciated, thank you
<via> though if i'm going to all the effort to hook up spi, any reason i shouldn't overrite the firmware?
<paulk-gagarine> via, up to you :)
<paulk-gagarine> via, I mean, I contributed libreboot support for the c201, so I am slightly biased
<via> has anyone experimented with having libreboot -> uboot -> emmc?
<paulk-gagarine> never tried it
<paulk-gagarine> I really like the depthcharge payload because of the vboot security features
<via> i just would like the idea of an actual interactive bootloader
<via> that would allow me to just select the partition to boot from
<paulk-gagarine> yeah I see
<paulk-gagarine> AFAIk you can just use u-boot directly, without coreboot at all
<paulk-gagarine> but I haven't tried it either
<via> oh, huh
<via> well, i guess i should probably just fix the partitions first, maybe get a backup, then mess ith it :p
<r1kaomsk_work> anyone have experience with ssv6051p?
<via> paulk-gagarine: i'm curious what you like about the vboot features
<paulk-gagarine> via, well, verified vboot
<paulk-gagarine> signed firmware parts, signed kernel
<via> but given that anyone can sign their on kernel, i guess i don't see what the advantage is
nighty- has joined #linux-rockchip
gnufan has quit [Ping timeout: 240 seconds]
<paulk-gagarine> via, well that is if you disable the signature verification
<via> oh
<via> i guess that comes ith dev mode??
<paulk-gagarine> not necessarily
<paulk-gagarine> I think it disables it when enabling developer mode, but can be reenabled
gnufan has joined #linux-rockchip
<paulk-gagarine> crossystem dev_boot_signed_only=1
cnxsoft1 has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 248 seconds]
cnxsoft1 is now known as cnxsoft
gnufan has quit [Ping timeout: 252 seconds]
<skjensen1> Hi guys, anyone here who got experience with RK3399 and running Ubunru on it?
<skjensen1> I simply can't figure out how to build/flash the boot partition so I can boot the system I got on the SDCard
<beeble> works exactly the same way as on any other system?
gnufan has joined #linux-rockchip
<skjensen1> Sorry I'm new to this.. I wasn't sure if I had to look at the rather limited documentation of RK3399 or if I can follow guides for other boards
<beeble> it depends a bit on your bootloader on how painfull it is
<beeble> but at the end its just modifying the kernel commandline to point to your sd card as rootfs
<beeble> so, what board do you have?
<skjensen1> I got the RK3399
<beeble> thats the cpu
<skjensen1> Firefly-RK3399
<skjensen1> I spent the day on that page without much luck..
<beeble> do you get a interactive u-boot shell?
<skjensen1> No, not yet
<r1kaomsk_work> "SPL" - what is it?
<skjensen1> Okay, I been there and I got the rockchip repo and build u-boot
<skjensen1> I get to the "Install U-Boot" section and get a bit confused as to what to do..
<r1kaomsk_work> skjensen1, tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl.bin rk3288_idb.img
<r1kaomsk_work> then falash it to sd card from 0x40
<r1kaomsk_work> then go maskrom
<r1kaomsk_work> and boot from sd
<paulk-gagarine> r1kaomsk_work, Scottish Poetry Library
<r1kaomsk_work> paulk-gagarine, LOL
<paulk-gagarine> "Secondary Program Loader"
<r1kaomsk_work> spl is the rk3288_idb.img in case above?
<paulk-gagarine> r1kaomsk_work, basically a minimalistic version of u-boot that runs in SRAM so that it can set up DRAM and load the main, full u-boot there
matthias_bgg has quit [Ping timeout: 240 seconds]
<skjensen1> Is this part important? cat u-boot.bin >> rk3399_idb.img
<skjensen1> I get permission denied even when I sudo the command
<beeble> redirect with sudo will not work as it will redirect the sudo output as your user
<skjensen1> Okay, did it as root and it worked.. :)
<beeble> sudo sh -c 'cat foo >> bla'
<beeble> if you want to have it working with sudo
<skjensen1> Thanks :) Useful to know
<skjensen1> Now, what tool do you use to flash the image onto the device?
matthias_bgg has joined #linux-rockchip
<beeble> you can write it directly onto the sd card
<beeble> with dd
<via> i just bought another c201, pa tis time (4g ram)
<via> still one of the best laptops i ever bought
<r1kaomsk_work> dd if=/home/myfile of=/dev/sda
<r1kaomsk_work> something like that
<beeble> the offset is missing :)
<r1kaomsk_work> yep
<skjensen1> okay.. and how do I know what offset to use?
<beeble> seek=64
<r1kaomsk_work> dd if=/home/myfile of=/dev/sda seek=64
<skjensen1> Thanks.. :)
<skjensen1> Still not much luck.. black screen when the sdcard is inserted
<beeble> a serial connection would be advisable
<beeble> u-boot does not activate video out by default
<skjensen1> Ahh okay, I will try that.. Thanks again.. :)
<beeble> otherwise you will flying blind, it should start distro_boot but if anything goes wrong you will not see what
descend-irc has joined #linux-rockchip
<r1kaomsk_work> there must be many debug messages before uboot starting OS boot
wzyy2 has quit [Ping timeout: 240 seconds]
cnxsoft has quit [Quit: cnxsoft]
JohnDoe_71Rus has joined #linux-rockchip
<rperier> where do you find DDR timing infos usually for a board, in its schematics ?
<beeble> ram device datasheet
<beeble> if the layout isn't broken that should be sufficient
vagrantc has joined #linux-rockchip
<beeble> since the rkbin loader worked you should be able to work with just the memory datasheet
<rperier> mhhh I see, ok thanks
<rperier> mhhh if only the datasheet was public... :D (I have the feeling that's not the case)
<beeble> what does the part silkscreen say?
wadim_ has quit [Remote host closed the connection]
matthias_bgg has quit [Quit: Leaving]
<beeble> i meant printed on the component
<beeble> but i looked at a picture i found on google
<beeble> so samsung lpddr3
<beeble> don't know if lpddr is already supported
<via> paulk-gagarine: well, i've got it apart and i've decided without an soic8 test clip i'm gonna fuck something up
<via> so i'll wait until i have a test clip
<via> i almost butchered one of the pins
<via> i wish there was a verified chromeos boot image that i could just get to a shell with
BenG83 has quit [Ping timeout: 260 seconds]
__hramrach has joined #linux-rockchip
_hramrach has quit [Ping timeout: 240 seconds]
r1kaomsk has joined #linux-rockchip
r1kaomsk_ has joined #linux-rockchip
descend-irc has quit [Quit: Connection closed for inactivity]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-rockchip
BenG83 has joined #linux-rockchip
BenG83_ has joined #linux-rockchip
lkcl has quit [Ping timeout: 246 seconds]
BenG83 has quit [Read error: Connection reset by peer]
r1kaomsk_ has quit []
gnufan has quit [Ping timeout: 240 seconds]
r1kaomsk has quit []
r1kaomsk has joined #linux-rockchip
wzyy2 has joined #linux-rockchip
phinxy has joined #linux-rockchip
phinxy has quit [Read error: Connection reset by peer]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
lurchi_ is now known as lurchi__
BenG83_ has quit [Quit: Leaving]
lurchi__ is now known as lurchi_
Myy has joined #linux-rockchip
<Myy> Meow
<Myy> Did anyone ever experienced a total system freeze when writing module drivers for RK3288 and trying to access pdev->resources[0] ?
<mmind00> Myy: most likely the devices clock is not on ... aka the hclk or pclk normally needs to be on to access device registers
<Myy> Aaah ! That's very likely to be the case !
<Myy> Thanks for the pointers !
<lurchi_> beeble: its not "printed on" but engraved
<lurchi_> beeble: are you sure its lpddr3 and not ddr3l?
gnufan has joined #linux-rockchip
r1kaomsk has quit [Read error: Connection reset by peer]
r1kaomsk_work_ has joined #linux-rockchip
gnufan has quit [Ping timeout: 240 seconds]
r1kaomsk_work has quit [Ping timeout: 240 seconds]
r1kaomsk_work__ has joined #linux-rockchip
r1kaomsk_work_ has quit [Ping timeout: 240 seconds]
phinxy has joined #linux-rockchip
wzyy2 has quit [Ping timeout: 264 seconds]
nighty- has quit [Quit: Disappears in a puff of smoke]
<Myy> Ok, the real reason was me not reading the printk documentation correctly. When using %pa to display resource_size_t types, you need to pass the argument by reference (so &res->start for example, and not res->start).