leowt changed the topic of #linux-rockchip to: Rockchip development discussion | http://linux-rockchip.info | http://irclog.whitequark.org/linux-rockchip
naobsd has quit [Quit: Page closed]
alcides has joined #linux-rockchip
arokux2 has quit [Remote host closed the connection]
akaizen has quit [Remote host closed the connection]
alcides has quit [Remote host closed the connection]
hramrach has quit [Ping timeout: 240 seconds]
hramrach has joined #linux-rockchip
Astralix1 has joined #linux-rockchip
Astralix has quit [Ping timeout: 264 seconds]
akaizen has joined #linux-rockchip
Theueip has joined #linux-rockchip
massi has joined #linux-rockchip
rellla has joined #linux-rockchip
Tsvetan3 has joined #linux-rockchip
Tsvetan2 has quit [Ping timeout: 252 seconds]
Tsvetan3 has quit [Quit: Leaving]
atiti has joined #linux-rockchip
arokux2 has joined #linux-rockchip
arokux2 has quit [Remote host closed the connection]
deviker has joined #linux-rockchip
pfalcon has joined #linux-rockchip
Tsvetan has joined #linux-rockchip
<pfalcon> Tsvetan: Hi, do you have a git repo with all available rk3xxx datasheets, like you have for a1x?
<arokux1> do you guys know the specification of the battery which will fit radxa board?
<Tsvetan> pfalcon there are links in the wiki to sites where this info is present
<Tsvetan> rockchip asked me to sign NDA for the documents they gave me
<Tsvetan> but basically these are same with the documents which are on the web already
<pfalcon> Tsvetan: I see. Current links I randomly spread, and point to dropbox accounts which can be gone any time. Someone who didn't sign nda should make a more central kind of dump ;-).
<Tsvetan> agree
ganbold_ has joined #linux-rockchip
<lunra> What's the legal risk in doing so? I can chuck it on my crappy webserver just for redundancy.
<lunra> (given that I did not sign an NDA, however it's still 'protected'?
<lunra> )
tomCode_ has joined #linux-rockchip
<tomCode_> Hi all, i am trying run u-boot on the rockchip rk3066! somebody able to do that before?
<tomCode_> Does somebody know the mysterious loader.bin from rockchip? whats this?
pfalcon has quit [Ping timeout: 264 seconds]
pfalcon has joined #linux-rockchip
libv has quit [Ping timeout: 260 seconds]
pfalcon has quit [Ping timeout: 260 seconds]
eebrah|noPC has joined #linux-rockchip
libv has joined #linux-rockchip
vinifr has joined #linux-rockchip
pfalcon has joined #linux-rockchip
<pfalcon> tomCode_: where did you get reference to *loader.bin* (exactly this name)? Otherwise, I started page to collect bootloading info: http://linux-rockchip.info/mw/index.php?title=User:Pfalcon#Bootloading_Questions
<tomCode_> pfalcon: thanks, i will study this page
<tomCode_> mmhh...i am wondering if the mask rom mode is something that is hardwired (lets say in hardware, programmed by the production of the chip) or it is something that is updated when a new image is flashed...
<tomCode_> with loader.bin I was speaking about e.g RK30xxLoader(L)_V1.18.bin
vinifr has quit [Ping timeout: 245 seconds]
pfalcon has quit [Ping timeout: 240 seconds]
eebrah|noPC has quit [Read error: Connection reset by peer]
eebrah|noPC has joined #linux-rockchip
vinifr has joined #linux-rockchip
eebrah|noPC has quit [Read error: Connection reset by peer]
pfalcon has joined #linux-rockchip
eebrah|noPC has joined #linux-rockchip
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
eebrah|noPC has quit [Ping timeout: 252 seconds]
naobsd has joined #linux-rockchip
<tomCode_> pfalcon, do you know the boot sequence on the RK3066? I think ARM boots from 0x00000000 or 0xFFFF0000...is this true for the RK3066?
* deviker I just wanted to say that marvin with its default conf creates good kernels for mk908v3 and omegamoon doesn't
<naobsd> mask rom code should be in CPU
<naobsd> boot image/partition is not a part of boot loader (at least existing Android/Linux firmware for RK)
pfalcon has quit [Ping timeout: 256 seconds]
<tomCode_> naobsd, according to the reference manual there is Internal on-chip memory10KB BootRom...is this the mask rom code? can it be updated?
mrueg has quit [Remote host closed the connection]
mrueg has joined #linux-rockchip
mrueg has joined #linux-rockchip
<naobsd> rom is rom, read-only
<naobsd> why do you want to update it?
<tomCode_> just want to be sure, that i do not brick my device
<tomCode_> i do not understand the RK images...usually an android image starts with the header "ANDROID" but the RK3066 boot.img starts with KRNL which is different..
<tomCode_> to make the confusion complete: the RK3066 recovery.img starts with ANDROID
<tomCode_> the question is, what is inside boot.img
<naobsd> some years ago, it can be bricked because sometimes proper RK..Loader...bin is not available, but for RK3x, it seems all devices uses compatible RK...bin, then it's impossible to brick it
<naobsd> KRNL boot.img is ramdisk
<naobsd> ANDROID! boot.img is kernel+ramdisk
<naobsd> same for recovery.img
<naobsd> ramdisk-only image need kernel.img in kernel partition
<tomCode_> thanks
<naobsd> you can convert image format
<tomCode_> yes, theses tools i have (img_maker afptool ...)
<tomCode_> is the linux kernel loaded directly from the RK3x loader?
<tomCode_> yes, but propably still not 100% understood
<naobsd> mask rom -> RK loader -> Linux kernel
<tomCode_> where is the rk loader stored? nand-flash?
<naobsd> if you have kernel+ramdisk image in boot partition, it will be used instead of kernel image in kernel partition
<naobsd> it = kernel in kernel+ramdisk image
<naobsd> nand
<tomCode_> that means if i want to run u-boot i have to replace the RK3x loader, correct?
<naobsd> I don't have right answer for now because no one tried yet. but is there any reason that RK3x loader can't load u-boot instead of kernel?
<tomCode_> ok. i have seen that there is also the possibility to include a second stage bootloader in boot.img.
<deviker> naobsd: Thanks you were right. It wasn't loading my kernel yesterday because I forgot to change boot.img and the previous boot.img already had a kernel inside so It didn't look at the kernel mtd.
<tomCode_> maybe this is the easier way
pfalcon has joined #linux-rockchip
<naobsd> Linux kernel is sometimes used as (some sort of) bootloader, there is kexec
<tomCode_> this is my second option
<naobsd> deviker: I see. kernel partition can be wiped if you have kernel in boot/recovery
<tomCode_> some rockchip devices have a "recovery" button which starts an alternative system (partition /recovery i think). where is this switch evaluated? is it in the loader?
<naobsd> NAND driver is binary only, it will be difficult to support NAND other than Linux(Android) kernel
<naobsd> well, there is a line in parameter like "RECOVER_KEY: 1,1,0,20,0"
<naobsd> I can't remember detail but probably it's related to ADC
<naobsd> RK loader read parameter, then it will check ADC key state
<tomCode_> i have got the # before this line in parameter
<naobsd> there is one another thing which also does something for recovery key...
<naobsd> if my memory is correct...
<naobsd> hmm
<naobsd> it should check radxa rock's schematic
<ganbold_> naobsd: http://pastebin.ca/2462084
<naobsd> ganbold: da0! very nice!
<naobsd> ganbold: is umass working?
<ganbold_> naobsd: seems need to set correctly clock for mp core timer, otherwise it seems timer is not working and it stops there
<naobsd> ah, I see
<ganbold_> I think "warning: no time-of-day clock registered, system time will not be set accurately" is after mounting
<ganbold_> but it will be more clear I fix timer
<ganbold_> when I fix timer I meant :)
<naobsd> well, time-of-day clock is RTC thing, not timer, I guess
<naobsd> Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
<naobsd> seems working...?
<ganbold_> no, it seems mpcore timer run on clock which is depend on CPU core clock
<naobsd> hmm
<naobsd> arch/arm/mach-rk3188/clock_data.c ?
<naobsd> well, it's arm generic thing... FreeBSD already support A9?
<ganbold_> yes
<naobsd> is there any common code for that clock?
<naobsd> sorry, I'm not sure about this kind of thing :(
vinifr has quit [Remote host closed the connection]
<naobsd> something need to be done for clock & reset unit?
<sjoerd> Anyone happen to know if the mk802 iiis board also have serial pins exposed somewhere?
<ganbold_> ok
<naobsd> well, I guess it's not periphclk in core...
atiti has quit [Ping timeout: 264 seconds]
<naobsd> it's for peripheral devices on board...?
<naobsd> (I'm not sure, sorry)
<ganbold_> well, this arm manual says "The Interrupt Controller, global timer, private timers, and watchdogs are clocked with PERIPHCLK."
<ganbold_> and according to RR board.h it says #define periph_pll_default periph_pll_768mhz
<ganbold_> 768Mhz
<ganbold_> naobsd: this RR kernel is android, right?
<naobsd> ganbold: android
<naobsd> this should be done?
<tomCode_> naobsd, this clever guy (sarg) obtained the bootrom (which is synonym for mask rom) from the RK3066, right?
<naobsd> tomCode: I think so. he sometimes join here
<tomCode_> i think in the reference manual there is a flow chart of the bootrom which says that an ID block is checked from NAND flash
<tomCode_> this would mean that the rom code can read nand flash
<tomCode_> (rom code = bootrom = mask rom)
<naobsd> tomCode: I think so
<naobsd> and from spi, emmc, uart, and usb
<tomCode_> scrambled or not?
<naobsd> well?
<tomCode_> i think the loader which is booted from the bootrom must be scrambled, independent which memory/download is used
<naobsd> probably, yes
<tomCode_> would mean that a binary (lets call it u-boot.bin) cannot just be transmitted via UART and executed...it must be scrambled before...
<tomCode_> one day i will try this...
<naobsd> there is key in sarg's info
<tomCode_> yes, i've seen it
<tomCode_> next step is to bring my board into UART mode
<naobsd> "erase IDB" erases RK loader on NAND, then you can enter mask rom mode
<tomCode_> the other way is : shorten two pads (on the NEO X5 it is T23 and T24), which propaply disables the NAND-Flash and the cpu thinks there is no external memory attached...
<naobsd> yes
<naobsd> some device has a key to kill NAND
<naobsd> hmm. reading rk30_clock_data_init() is hard task ;)
<naobsd> oh, FreeBSD-CURRENT arm compiler is clang...
<naobsd> (return to my own work...)
<tomCode_> naobsd, cu, thanks for all answers
<sjoerd> Heh, did the linux-rockchip-3.0 repository disappear ?
<naobsd> it was just an archive of released/leaked kernel source. same as mirror of tarballs. no unique work was committed.
<sjoerd> I see
<sjoerd> Is there one main repository for these efforts ? iirc it was mentioned Gallands tree is the current suggested one
<naobsd> there are some people, some groups, but (I think) no main "team"
<naobsd> #linux-rockchip and linux-rockchip.info is very new
<Tsvetan> naobsd is there any obstracle linux-rockchip repository on github to be made?
<Tsvetan> linux-sunxi also at the beginning was spread through many repos hno/uboot amery/sunxi etc
<Tsvetan> but later they decided to put everything on one place
<naobsd> obstacle?
<Tsvetan> obstracle
<Tsvetan> problem
<Tsvetan> reason
<Tsvetan> :)
<naobsd> my English is poor, sorry
<naobsd> well
<Tsvetan> english is not my native language too
<naobsd> I'm OK to use https://github.com/linux-rockchip/
<naobsd> but I cannot enforce it for other people who already have repo
<naobsd> actually I'm not a guy who started https://github.com/linux-rockchip/, but I think it should be ok
<Tsvetan> actually who did this repo? astralix1 is it you ?
<naobsd> I'm talking about organization(group) on github, not repo under linux-rockchip group
<naobsd> existing repo under linux-rockhip were pushed by me
<sjoerd> So i guess what i get to dig out is what is now the best repository for mk802iv (and/or what defconfig to use..)
pfalcon has quit [Ping timeout: 240 seconds]
<naobsd> Tsvetan: leojrfs made github group
<naobsd> some people joined, but no one talk about organization
<naobsd> some people joined, that's all
<arokux1> do you guys know the specification of the battery which will fit radxa board?
<naobsd> arokux: how about battery with USB 5V out?
pfalcon has joined #linux-rockchip
<arokux1> naobsd: I mean small on-board battery
<arokux1> naobsd: http://dl.radxa.com/rock/media/pic/hd/top.jpg top left corner
<naobsd> ah, sorry ;)
<arokux1> naobsd: do you know its type? :)
<naobsd> just googled, not sure
<arokux1> naobsd: what is this?
<naobsd> I thought that battery is for RTC
<arokux1> naobsd: it is.
<arokux1> naobsd: I just cannot read chinese.. what is this HYM8563?
<naobsd> schematic says it's HM8563
<naobsd> I can't read too
<naobsd> it seems there are some 8563 RTC... e.g. http://www.nxp.com/documents/data_sheet/PCF8563.pdf
<arokux1> naobsd: how is that connected to the battery? you think there is a spec on the voltage needed?
<naobsd> there is "1.8-5.5V" at 1st page in HM8563.PDF
<arokux1> let's wait for Tom to appear.
<naobsd> yes, we should
<naobsd> 8563 chip is soldered on the other side of USB HOST2
hramrach has quit [Write error: Broken pipe]
deviker has quit [Ping timeout: 248 seconds]
massi has quit [Quit: Sto andando via]
arokux2 has joined #linux-rockchip
tomCode_ has quit [Ping timeout: 250 seconds]
eebrah|noPC has joined #linux-rockchip
mcbrick has joined #linux-rockchip
mcbrick has quit [Quit: Leaving]
mcbrick has joined #linux-rockchip
eebrah_ has joined #linux-rockchip
eebrah|noPC has quit [Read error: Connection reset by peer]
eebrah_ has quit [Ping timeout: 252 seconds]
atiti has joined #linux-rockchip
arokux2 has quit [Remote host closed the connection]
arokux2 has joined #linux-rockchip
atiti has quit [Ping timeout: 240 seconds]
Theueip has quit [Quit: Leaving...]
pfalcon has quit [Ping timeout: 256 seconds]
pfalcon has joined #linux-rockchip
<pfalcon> naobsd: hi, http://androtab.info/clockworkmod/rockchip/ is your site, right?
arokux2 has quit [Remote host closed the connection]
pfalcon has quit [Quit: Leaving]