ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | Wiki at http://linux-rockchip.info | Logs at http://irclog.whitequark.org/linux-rockchip | ML at http://groups.google.com/group/linux-rockchip
Astralix has joined #linux-rockchip
<naobsd> git repos on github is partially restored...
<naobsd> https://github.com/linux-rockchip/u-boot-rockchip u-boot-rk3288 branch contains architected timer patch, if you want to try mainline kernel, use this
<naobsd> ganbold__: https://github.com/linux-rockchip/u-boot-rockchip/commit/adc60cd845f43c9fefb383179d8e4e7f25851c88 you can go fastboot from rockusb by this way
<naobsd> if you want to go u-boot command prompt, change configuration around include/configs/rk*
<naobsd> I'm not sure what we can do with this newer u-boot... it's ver. 2.19
<tizbac> for now i'm using the rockchip bootloader directly
<naobsd> tizbac: sorry, it's not for "making usable kernel source" work
<naobsd> other u-boot-rk3xxx will be pushed later...
<ganbold__> naobsd: did you try this new u-boot?
<naobsd> ganbold__: probably
<naobsd> probably I tried
levd has joined #linux-rockchip
field^Mop has joined #linux-rockchip
field^Mop has quit [Ping timeout: 258 seconds]
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 244 seconds]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 244 seconds]
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 265 seconds]
cnxsoft has joined #linux-rockchip
<jmcneill> evening
phh_ has joined #linux-rockchip
ganbold___ has joined #linux-rockchip
<jmcneill> hi ganbold
<ganbold___> hi jmcneill
<jmcneill> whats new?
<ganbold___> jmcneill: not much, I was able to flash kernel to firefly, but need to add cpuid and test again
<ganbold___> how about you? got serial working?
<jmcneill> i did, now i need to figure out how to load a kernel from an sd card
<ganbold___> maybe naobsd has some idea
<jmcneill> hopefully. i havent spent too much time on it yet.
<jmcneill> busy past few days
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 252 seconds]
ganbold__ has quit [*.net *.split]
phh has quit [*.net *.split]
ganbold___ is now known as ganbold
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 272 seconds]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 272 seconds]
levd has quit [Remote host closed the connection]
levd has joined #linux-rockchip
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 258 seconds]
<ganbold> naobsd: yeah, I guess I need new u-boot that you pointed, fastboot mode maybe easier than flashing everytime
<ganbold> naobsd: do you have this new u-boot compiled?
* ganbold is getting lazy these days
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 272 seconds]
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 240 seconds]
<naobsd> jmcneill: ping
<naobsd> jmcneill: for now please try http://androtab.info/rockchip/u-boot/
<naobsd> u-boot-rk3188-sdcard.zip
<naobsd> oops
<naobsd> kernel partition may not be defined...
mrcan_ has joined #linux-rockchip
Astralix1 has joined #linux-rockchip
mrcan has quit [Ping timeout: 245 seconds]
<naobsd> jmcneill: with u-boot and rkflashtool, you can send kernel to RAM via OTG and can exec
Astralix has quit [Ping timeout: 250 seconds]
<naobsd> jmcneill: I think I need to explain more step by step...
levd1 has quit [Remote host closed the connection]
levd has joined #linux-rockchip
<naobsd> lunch time now
<ganbold> so no rk3288 doc, not good
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 240 seconds]
hipboi has quit [Ping timeout: 250 seconds]
hipboi has joined #linux-rockchip
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 245 seconds]
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 240 seconds]
ganbold has quit [Read error: Connection reset by peer]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 272 seconds]
ganbold_ has joined #linux-rockchip
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 240 seconds]
<naobsd> ganbold_: http://androtab.info/rockchip/u-boot/ u-boot for rk3288 is updated
<naobsd> ganbold_: please flash it to eMMC
<ganbold_> ok, thanks, will do that later and let me know
<ganbold_> oh
<ganbold_> let you know
<ganbold_> :)
<naobsd> let update u-boot for rk3188...
levd has joined #linux-rockchip
<naobsd> oops
levd1 has quit [Ping timeout: 264 seconds]
<naobsd> when booting mainline kernel via fastboot, size of RAM is 128MB which is defined(compiled) in u-boot
<naobsd> I have to understand logic around atag, dtb, etc
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 252 seconds]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 245 seconds]
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 255 seconds]
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 252 seconds]
<ganbold_> naobsd: which one to flash?
levd1 has joined #linux-rockchip
<naobsd> please read README_emmc.txt
<naobsd> ganbold_: please read README_emmc.txt
levd has quit [Ping timeout: 272 seconds]
<naobsd> if you can access first 4MiB area on emmc, you may use dd to update bootloader as like as sd card
<ganbold_> upgrade_tool ul RK3288UbootLoader_V2.19.01.bin
<ganbold_> this one?
<naobsd> yes
<ganbold_> maybe need linux
<naobsd> you may use Windows
<ganbold_> don't have it
<naobsd> then linux x86 is needed
<naobsd> or you may try README_sdcard.txt to emmc on Linux on Firefly
<naobsd> probably /dev/mmcblk0 or /dev/block/mmcblk0 is emmc
<ganbold_> yeah, anyhow will leave it for a while
<naobsd> I'll update README_emmc.txt to suggest self-update on firefly with dd commands
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 252 seconds]
<naobsd> jmcneill: http://androtab.info/rockchip/u-boot/ u-boot for rk3188 is updated. please try README_sdcard.txt
<ganbold_> naobsd: self-update ? you mean from android?
<naobsd> android or linux or anything else which can write data to emmc
<ganbold_> naobsd: yeah maybe I should try upgrade_tool from linux on rk3288
hipboi has quit [Read error: Connection timed out]
levd1 has joined #linux-rockchip
hipboi has joined #linux-rockchip
levd has quit [Ping timeout: 255 seconds]
<naobsd> no, upgrade_tool is for x86 linux
<ganbold_> ah ok
<ganbold_> looks like to compile u-boot-rockchip I need linux
<ganbold_> :)
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 240 seconds]
FreezingCold has quit [Ping timeout: 252 seconds]
<naobsd> I guess it needs gmake and gcc
levd1 has joined #linux-rockchip
<naobsd> levd: ping
<naobsd> levd1: ping
levd has quit [Ping timeout: 252 seconds]
<naobsd> levd1: updated u-boot for rk3288 which support mainline kernel is avaiable here http://androtab.info/rockchip/u-boot/
<naobsd> if you prefer u-boot source in SDK, arch timer init patch should be applied easily
<naobsd> does marsboard have eMMC? is there any rk3066 board with eMMC?
levd has joined #linux-rockchip
levd1 has quit [Ping timeout: 272 seconds]
<Astralix1> good morning and a merry christmas
<ganbold_> naobsd: yeah, better try in linux maybe
<Astralix1> I have a question about rockk1 and server image... I am not sure if I hadn't read hhere about the problem...
<Astralix1> I us a lubuntu prebuild image as a server image for rock1
<Astralix1> I added and configured samba and mediatomb
<Astralix1> However, mediatomb is just on standby.
<Astralix1> Now I copied large ammounts of files via samba and every time I do that, after several Gb of data copied, the network speed drops to very low and the rock is not reachable anymore
Astralix1 has quit [Read error: Connection reset by peer]
Astralix has joined #linux-rockchip
levd1 has joined #linux-rockchip
levd has quit [Ping timeout: 252 seconds]
dlezcano has quit [Quit: Leaving]
levd1 has quit [Ping timeout: 240 seconds]
dlezcano has joined #linux-rockchip
BorgCuba has joined #linux-rockchip
<BorgCuba> mmind00, I tested your patch. it WORKS! thank you very much/good work. Here is the bootlog, just in case: http://pastebin.com/j8HCQ0Si
<naobsd> oh I noticed there is marsboard with PX2
<jmcneill> morning
<jmcneill> naobsd, thanks for the updated u-boot. just tried it, and no luck (I must have missed something)
<naobsd> jmcneill: u-boot is booted fine
<jmcneill> where do I put the kernel?
<naobsd> well
<naobsd> strange
<naobsd> did you write parameter(.img)?
<jmcneill> no, where do I get that?
<naobsd> it's in zip
<naobsd> btw you can load kernel onto RAM with rkflashtool
<naobsd> I guess NAND will not be used on NetBSD
<naobsd> ah, sorry, it's SD, not NAND
<jmcneill> SD yeah.
<naobsd> if you want to put kernel on SD, write parameter.img
<naobsd> 0x00008000@0x00006000(kernel) is in parameter
<naobsd> kernel offset is 0x6000 (sector)
<jmcneill> great, thanks
<naobsd> dd if=${partition}.img of=${DEV} conv=sync,fsync seek=$((0x2000+offset))
<naobsd> but you may use rkflashtool/upgrade_tool to write parameter/kernel via OTG
<naobsd> then you can ignore offset
<jmcneill> I was hoping to avoid those tools if possible.
<naobsd> kernel binary(binary, not elf) must be converted with rkcrc
<naobsd> https://github.com/naobsd/rkutils <- rkcrc is here
<jmcneill> arg it can't load a uboot image?
<naobsd> jmcneill: for now, yes
<naobsd> I guess necessary modification will be small
<naobsd> ah, rkcrc is included in rkflashtool repo
<naobsd> to boot kernel in kernel partition, you need to write dummy data to boot partition too
<jmcneill> what would that look like?
<naobsd> bootloader try to validate kernel AND boot partition
<naobsd> you can write converted kernel.img to boot partition. it will not be used, just for cheating bootloader
<jmcneill> ok
<jmcneill> partition(kernel): offset=0x00006000, size=0x00008000
<jmcneill> oh that size is sectors isn't it
<naobsd> it's sector
<naobsd> don't forget to add 0x2000
<naobsd> to dd seek=
<jmcneill> got it
<jmcneill> netbsd kernel has booted, yahoo
<naobsd> :)
<jmcneill> thanks!
<jmcneill> this is on the minix neo x7 box btw
<naobsd> there is a hack to toggle some board specific gpio to power USB
<naobsd> it's for Radxa Rock
<jmcneill> I should plug something in and see if it finds it
<naobsd> we need to add support for GRF (pin mux configuration) then think about how to handle board specific configuration
<jmcneill> it's all done in device_register for allwinner right now, but it's kinda messy
<jmcneill> (and means a different kernel for each board)
<naobsd> I prefer dts/dtb but
<jmcneill> i would too, mumble
<naobsd> it may be possible to pass some hint from u-boot env
<jmcneill> sd0 at scsibus0 target 0 lun 0: <Lexar, JumpDrive, 1.00> disk removable
<jmcneill> sd0: fabricating a geometry
<jmcneill> sd0: 61056 MB, 61056 cyl, 64 head, 32 sec, 512 bytes/sect x 125042688 sectors
<naobsd> as not so nice workaround ;)
<jmcneill> usb works here at least
<naobsd> oh
<naobsd> I guess there is no gpio to control USB power on X7 :)
<jmcneill> you seemed so certain that it wouldn't work at all :-)
<naobsd> btw I'll be busy for a while for another thing
<jmcneill> Now that I can boot a kernel, I should be good to go. Thanks a bunch.
<naobsd> :)
<naobsd> if you can please try rkflashtool too, you can send kernel onto RAM
<naobsd> it should work on NetBSD
<jmcneill> I'm on Windows
<naobsd> ah
<naobsd> well
<naobsd> I guess rkflashtool should work on little-endian NetBSD/arm
<naobsd> ;)
<jmcneill> Ended up installing a Linux VM for this. Hoping to have a u-boot that can load a kernel from fat partition so I can ditch it.
<naobsd> sdmmc driver in rk u-boot is somewhat special, it doesn't use standard u-boot interface
<naobsd> but sdmmc controller is designware, it should be supported in upstream u-boot
field^Mop has joined #linux-rockchip
<naobsd> or it may be supported in rk u-boot too, I need to check it
<naobsd> sorry, I have to leave for a while
<naobsd> later
<jmcneill> np, thanks
pacopad has joined #linux-rockchip
<pacopad> Hi guys, i got network performance problem with rk3288 ethernet under linux and android
<pacopad> is there a bug with gmac kernel ?
<pacopad> gmac driver sorry
cnxsoft has quit [Ping timeout: 258 seconds]
eebrah_ has joined #linux-rockchip
eebrah_ has quit [Client Quit]
eebrah has quit [Remote host closed the connection]
eebrah has joined #linux-rockchip
BorgCuba has quit [Quit: leaving]
<naobsd> back
eebrah has quit [Quit: Lost terminal]
<naobsd> let's retry mainline patch for rk3066...
<jmcneill> do you know if anyone is writing an mmc driver for netbsd?
<jmcneill> btw I implemented radxa_reset (using a9wdt) but i get inconsistent panics on subsequent boots, something must be not reinitialized properly by uboot
<naobsd> on Linux, reset should be done by CRU +0x100 GLB_SRST_FST register
<jmcneill> wasn't in the rk3188 trm, but watchdog reset should work properly too
<jmcneill> the reset via a9 watchdog actually worked, it was just booting the kernel after reset that didn't
<naobsd> "If config 0xfdb9, it will generate first global software reset." in PX2 TRM
<jmcneill> ah forgot to check there, thanks
<jmcneill> can I convince you to check in port-rockchip to netbsd cvs?
<jmcneill> would make my life a lot easier :)
<jmcneill> i'm working on mmc driver btw
<naobsd> in branch? main trunk?
<jmcneill> trunk yeah
<jmcneill> maybe the only thing I would change is renaming arch/evbarm/radxa to something more generic
<naobsd> yes, agree
<naobsd> rockchip or rk3188
<jmcneill> are you able to share a kernel with rk3188 and rk3066 ?
<karlp> so, say I've got a branch based on v3.16.6, and I want to bring it up to 3.18.1 (latest stable) andit only has one commit on tp of 3.16.6, what's the best way of doing that? with branches at work, I'd justdo "git rebase v3.18.1" but this is getting merge conflcits inthings not in my patch, is saving a patch file and checking out a clean branch really the best way?
<naobsd> jmcneill: current code doesn't have rk3188 specific code yet, it boots on rk3066 too
<jmcneill> ah great
<jmcneill> arch/evbarm/rockchip or arch/evbarm/rk works for me then
<naobsd> jmcneill: but some units around core are different e.g. GRF, TIMER,
<naobsd> some peripherals are same e.g. USB, MMC
<jmcneill> can you detect at runtime?
<naobsd> probably yes. there is some code in RK Linux 3.0 kernel like as is_rk3188()/is_rk3066()
<jmcneill> need to figure out how to detect ram size too (this is a 2GB board)
<jmcneill> too many distractions, must focus on mmc for now :)
<jmcneill> you said it is a generic designware module?
<naobsd> 0x10100000+0x27f[0-f] should have some kind of RK SoC id
<naobsd> well
<naobsd> it's dw mmc but some rockchip mod
<jmcneill> I'll put it in dev/ic anyway, we can #ifdef away the rockchip specific parts later if needed.
<naobsd> sdio interrupt bit is shifted +8
<jmcneill> sdio is my last concern
<naobsd> SDMMC_CMD_USE_HOLD_REG need to be set
<naobsd> on request command
<jmcneill> got it
<naobsd> I'm not sure mmc works without clock and power support
<naobsd> but I guess it may work when "boot from SD" case
<jmcneill> yep :)
<jmcneill> do you know what the sdmmc input clock is?
<naobsd> clock thing is too difficult for me.... I can see some things in PX2 TRM, but I think CRU should be different between PX2(RK3066) and RK3188...
<jmcneill> would you like to import the code or should I?
<naobsd> jmcneill: I'm not NetBSD developer!
<jmcneill> oh, why not? :)
<naobsd> jmcneill: I'm not sure why ;)
<naobsd> jmcneill: @tokudahiroshi on twitter agreed to import
<jmcneill> saw that, thanks
<jmcneill> I guess I'll import it then
<naobsd> I see, thank you
ChanServ has quit [shutting down]
ChanServ has joined #linux-rockchip
<pacopad> anyone ?
cnxsoft has joined #linux-rockchip
pacopad has quit [Quit: pacopad]
mrcan_ has quit [Read error: Connection reset by peer]
<naobsd> mmind00: oh I forgot to mention "tested with linux-next next-20141226"
mrcan_ has joined #linux-rockchip
<naobsd> mmind00: anyway it works
<naobsd> hmm
<naobsd> u-boot rk30/31 probably passes ATAG info, then if ATAG support is enabled in linux mainline, memory size in dts/dtb is ignored, compiled memory size info (64MB or so) is used :(
<naobsd> but if ATAG support is enabled, ramdisk on boot/recovery partition can be mounted...
<naobsd> I have to sleep...
FreezingCold has joined #linux-rockchip
cnxsoft has quit [Quit: cnxsoft]
dlezcano has quit [Ping timeout: 265 seconds]
dlezcano has joined #linux-rockchip
nighty^ has joined #linux-rockchip
field^Mop has quit [Ping timeout: 245 seconds]
Avagetto has joined #linux-rockchip
Avagetto1 has joined #linux-rockchip
Avagetto2 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 244 seconds]
Avagetto has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 244 seconds]
Avagetto2 has quit [Ping timeout: 265 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 265 seconds]
Avagetto has joined #linux-rockchip
Avagetto2 has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 256 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 258 seconds]
Avagetto2 has quit [Ping timeout: 256 seconds]
Avagetto has joined #linux-rockchip
Avagetto2 has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 258 seconds]
Avagetto has quit [Ping timeout: 258 seconds]
Avagetto has joined #linux-rockchip
Avagetto2 has quit [Ping timeout: 252 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 252 seconds]
Avagetto has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 244 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto2 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 245 seconds]
Avagetto3 has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 245 seconds]
Avagetto has joined #linux-rockchip
Avagetto2 has quit [Ping timeout: 245 seconds]
Avagetto3 has quit [Ping timeout: 245 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto2 has joined #linux-rockchip
Avagetto3 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 244 seconds]
Avagetto1 has quit [Ping timeout: 244 seconds]
Avagetto2 has quit [Ping timeout: 244 seconds]
Avagetto has joined #linux-rockchip
Avagetto3 has quit [Ping timeout: 244 seconds]
akaizen has quit [Ping timeout: 245 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 265 seconds]
Avagetto has joined #linux-rockchip
Avagetto2 has joined #linux-rockchip
Avagetto1 has quit [Ping timeout: 255 seconds]
Avagetto1 has joined #linux-rockchip
Avagetto has quit [Ping timeout: 255 seconds]
Avagetto1 has quit [Client Quit]
Avagetto2 has quit [Ping timeout: 258 seconds]
akaizen has joined #linux-rockchip
lerc has quit [Remote host closed the connection]
FreezingCold has quit [Ping timeout: 256 seconds]
lerc has joined #linux-rockchip
markm_ has joined #linux-rockchip
markm_ has quit [Ping timeout: 245 seconds]
rz2k has joined #linux-rockchip
markm_ has joined #linux-rockchip
rz2k has quit []
nighty^ has quit [Quit: Disappears in a puff of smoke]
markm_ has quit [Ping timeout: 245 seconds]
markm_ has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
Astralix has quit [Quit: Leaving.]
Astralix has joined #linux-rockchip