ChanServ changed the topic of #radxa to: http://radxa.com/ - Logs: http://irclog.whitequark.org/radxa
naobsd has quit [Quit: Page closed]
ganbold__ has joined #radxa
ganbold_ has quit [Ping timeout: 255 seconds]
jceel_ has joined #radxa
mrcan_ has joined #radxa
ojn_ has joined #radxa
qloogkm_ has joined #radxa
steev_ has joined #radxa
steev has quit [*.net *.split]
hipboi has quit [*.net *.split]
jceel has quit [*.net *.split]
mrcan has quit [*.net *.split]
qloogkm has quit [*.net *.split]
ojn has quit [*.net *.split]
Turl has quit [*.net *.split]
qloogkm_ is now known as qloogkm
Turl has joined #radxa
steev_ is now known as steev
ojn_ is now known as ojn
naobsd has joined #radxa
hipboi has joined #radxa
irsol has quit [*.net *.split]
geekf00 has quit [*.net *.split]
irsol has joined #radxa
geekf00 has joined #radxa
AstralixNB has joined #radxa
gb_master has quit [Quit: Page closed]
akaizen has quit [Remote host closed the connection]
akaizen has joined #radxa
akaizen has quit [Ping timeout: 260 seconds]
akaizen has joined #radxa
wickwire has joined #radxa
ganbold__ has quit [Ping timeout: 255 seconds]
akaizen has quit [Remote host closed the connection]
akaizen has joined #radxa
akaizen has quit [Ping timeout: 272 seconds]
ganbold_ has joined #radxa
akaizen has joined #radxa
akaizen has quit [Read error: No route to host]
akaizen has joined #radxa
akaizen_ has joined #radxa
akaizen has quit [Ping timeout: 260 seconds]
bengal has joined #radxa
bengal has quit [Quit: Leaving]
akaizen_ has quit [Remote host closed the connection]
akaizen has joined #radxa
akaizen has quit [Ping timeout: 272 seconds]
naobsd has quit [Quit: Page closed]
FreezingCold has quit [Ping timeout: 272 seconds]
FreezingCold has joined #radxa
FreezingCold has quit [Read error: Connection reset by peer]
FreezingCold has joined #radxa
<jceel_> ganbold_: ping
<ganbold_> jceel_: pong
<jceel_> ganbold_: I've recently bought Radxa Rock Lite without NAND
<jceel_> ganbold_: is it possible to run FreeBSD on it?
naobsd has joined #radxa
FreezingCold has quit [Ping timeout: 255 seconds]
<ganbold_> jceel_: yes
<ganbold_> jceel_: did you check wiki?
<ganbold_> jceel_: wait
<ganbold_> jceel_: sorry, I was thinking about different thing
<ganbold_> jceel_: I think we should ask naobsd
<ganbold_> naobsd: is it possible to boot from usb or sd on RR lite?
<jceel_> ganbold_: it is possible to boot from sd
<jceel_> ganbold_: but I have no clue how to prepare sd correctly
<jceel_> ganbold_: also, I've tried OTG mode in the way described on the wiki
<jceel_> ganbold_: and it seems that in OTG mode RR Lite just writes to SD instead of NAND
<jceel_> but I'm getting "invalid tag" errors from loader
<naobsd> jceel_: did you do "rkcrc -k kernel.bin kernel.img"?
<jceel_> naobsd: yes
<naobsd> jceel_: how did you write parameter?
<jceel_> naobsd: rkcrc -p param.txt param.bin && rkflashtool w 0x0 0x2 < param.bin
<jceel_> also tried rkflashtool P < param.txt
<jceel_> with newer version of rkflashtool
<naobsd> ah, you need to flash valid image to boot even if you don't use it
<naobsd> flash kernel image to boot partition
<naobsd> kernel.img which has valid header
<naobsd> or any data is ok if it has valid header (rkcrc -k)
<jceel_> ok, I have kernel.img from miniroot which should fit
<jceel_> how should I write it using rkflashtool?
<naobsd> rkflashtool w boot < boot.img
<jceel_> btw, I'm writing kernel using: rkflashtool w 0x4000 0x5000 < kernel.img
FreezingCold has joined #radxa
<naobsd> any method is ok if it works
* jceel_ wonders if there's rk3188 boot process explained somewhere
<naobsd> invalid tag error is fixed?
<jceel_> naobsd: I've flashed boot.img from here: http://androtab.info/miniroot/
<jceel_> to boot partition
<jceel_> and still have:
<jceel_> start_linux=====49959
<jceel_> SHA ERROR!
<jceel_> E:Invaid tag(0x4D524150)!
<jceel_> Load failed!
<jceel_> Load failed!
<naobsd> well
<naobsd> you used rkcrc -p for parameter, and rkcrc -k for kernel?
<jceel_> yes
<jceel_> written kernel at 0x4000 and parameter at 0x0
<naobsd> please
<naobsd> rkflashtool r 0x0 0x1 | hexdump -C | head -1
<naobsd> rkflashtool r 0x4000 0x1 | hexdump -C | head -1
<jceel_> jceel@oxidev:~/src/rkflashtool% sudo ./rkflashtool r 0x0 0x1 | hexdump -C | head -1
<jceel_> 00000000 50 41 52 4d ae 01 00 00 46 49 52 4d 57 41 52 45 |PARM....FIRMWARE|
<jceel_> jceel@oxidev:~/src/rkflashtool% sudo ./rkflashtool r 0x4000 0x1 | hexdump -C | head -1
<jceel_> rkflashtool: info: reading flash memory at offset 0x0000400000000000 4b 52 4e 4c e4 03 42 00 00 90 a0 e1 01 80 a0 e1 |KRNL..B.........|
<jceel_> jceel@oxidev:~/src/rkflashtool% sudo ./rkflashtool r boot | hexdump -C | head -1
<jceel_> rkflashtool: info: reading flash memory at offset 0x0000200000000000 4b 52 4e 4c 61 62 18 00 1f 8b 08 00 a3 7d 77 53 |KRNLab.......}wS|
<naobsd> rkflashtool p |grep CMDLINE
<jceel_> CMDLINE:console=ttyFIQ0,115200 console=tty0 root=/dev/mmcblk0p1 rw rootfstype=ext4 init=/sbin/init mac_addr=de:ad:de:ad:be:ef initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot)
<naobsd> ah
<naobsd> hm
<naobsd> ganbold_:
<naobsd> well
<naobsd> jceel_: edit parameter mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot) -> mtdparts=rk29xxnand:0x00008000@0x00002000(kernel),-@0x0000A000(linuxroot)
<naobsd> and reflash parameter after rkcrc -p, then reflash kernel with rkflashtool w kernel < kernel.img
<naobsd> you don't have kernel partition at 0x4000
<jceel_> naobsd: now the 'SHA ERROR' is gone, but I still have E:Invaid tag(0x4D524150)!
<naobsd> :(
<naobsd> hmm
<jceel_> naobsd: what does that mean?
<jceel_> 0x4D524150 == 'PARM'
<naobsd> mtdparts=rk29xxnand:0x00008000@0x00002000(kernel),0x00008000@0x0000a000(boot),-@0x00012000(linuxroot)
<naobsd> and flash boot.img to boot
<jceel_> naobsd: so kernel and boot partitions will overlap?
<naobsd> no
<jceel_> both are at 0x8000?
<naobsd> kernel start at 0x2000, boot start at 0xa000
<jceel_> ah
<jceel_> right
<jceel_> it's length@offset
<ganbold_> naobsd: :) my ES had 0x4000
<jceel_> hah, now it says 'CRC failed'
<jceel_> seriously, do we even now how it works?
<naobsd> kernel or boot may be broken, reflash them
<jceel_> ok, something is wrong with boot.img
<jceel_> because 'CRC error' disappeared after clearing boot partition
FreezingCold has quit [Ping timeout: 240 seconds]
<naobsd> worked?
<jceel_> naobsd: nope. I've tried following things:
<jceel_> 1) dd if=/dev/zero of=dummy.bin && rkcrc -k dummy.bin dummy.img && rkflashtool w boot < dummy.img ---> CRC error & "Invaid Tag"
<jceel_> 2) rkflashtool e boot -> only "Invaid Tag"
<jceel_> 3) rkflashtool w boot < boot.img (obtained from http://androtab.info/miniroot/) -> CRC error & "Invaid Tag"
<jceel_> in 1), it was 1MB zero-filled .bin
<naobsd> please try to flash parameter, kernel.img, and boot.img from that miniroot page...
<jceel_> naobsd: still CRC error. but I've tried earlier to put these manually on the sd
<jceel_> naobsd: and it worked (at least kernel booted)
FreezingCold has joined #radxa
<naobsd> please tell me what you typed
<jceel_> naobsd: rkflashtool w 0x0 0x2 < parameter.img && rkflashtool w kernel < kernel_lite.img && rkflashtool w boot < boot.img
<jceel_> and then rkflashtool b
<AstralixNB> jceel_ your kernel command line misses a rootwait token after root=/dev/mmcblk0p1
<jceel_> hah!
<jceel_> it booted!
<jceel_> naobsd: i've written parameter file, kernel and boot.img directly to sd card
<AstralixNB> correct
<jceel_> naobsd: according to this guide: http://androtab.info/radxa_rock/sdboot/
<jceel_> naobsd: but with freebsd kernel instead of miniroot one
<jceel_> and it booted
<jceel_> but still no luck with OTG
<AstralixNB> that is the right way, but omit passing invalid parameters to the kernel command line in parameters
<naobsd> maybe USB writing doesn't work with SD
<jceel_> AstralixNB: well, kernel cmdline is not meaningful at all with FreeBSD
<jceel_> naobsd: maybe..
<AstralixNB> Ok, that I didn't know
<jceel_> btw
<jceel_> rk3188 has the most fucked up boot process I've ever seen
<AstralixNB> naobasd, what I figures out is, that Loader can write to parameter of SD, but not the rest of the images
<jceel_> it seems that nobody fully understands it
<jceel_> can I have just regular u-boot there?
<AstralixNB> at least it killed a kernel that I wrote by using rkflashtool but the kernel worked by dd-ing it to the card
<naobsd> jceel_: boot process is simple, just different to others
<AstralixNB> not even that. It is only hidden in closed source. uboot does the same steps just more open and flexible
<jceel_> btw
<AstralixNB> probably loader can even correctly write sd-card but you have to use a different offset calculation
<jceel_> is it possible to connect JTAG to radxa?
<AstralixNB> JTAG at RK is AFAIK only a debug port. It cannot be used for more than the fiq-debug port can be used for.
<AstralixNB> but if you like to check youself:
<jceel_> naobsd: alredy tried, doesn't work for me either :)
<AstralixNB> jceel_: TDI = GPIO1_B0, TDO = GPIO1_B1, TRSTn = GPIO3_D4, TCK = GPIO3_D5 and TMS = GPIO3_D6
<naobsd> jceel_: what you tried?
<jceel_> naobsd: load plain kernel binary (without rkcrc header) to address it's expected to be loaded (0x60400000) and then rkflashtool B 0x60400000
<naobsd> jceel_: you need u-boot bin in my zip
<AstralixNB> naobsd, does the uboot code you have use the uboot header instead of the rkcrc?
<jceel_> naobsd: FlashBoot_uboot.bin?
<jceel_> naobsd: I'll try!
<jceel_> naobsd: anyway, thanks for all your support
<naobsd> jceel_: and 0x60400000 may conflict u-boot, you should use kernel with rkcrc -k, my u-boot hack relocate it
<naobsd> AstralixNB: no, RK header(KRNL) or fastboot header(ANDROID!)
<AstralixNB> naobsd, I've moved my internal NAND to the external sd card and modified the kernel command line, so the loader and kernel reside in NAND, the working rootfs on SD.
<AstralixNB> So I am pretty much ready to start again kernel-ing :)
<jceel_> btw
<jceel_> can I write regular MBR to offset 0x0 on SD card?
<jceel_> and it won't overwrite something belonging to boot process?
<AstralixNB> yes
<naobsd> jceel_: yes of course
<jceel_> ok, thanks
<jceel_> ah, I seee... everything starts at 0x2000
<jceel_> for loader
<AstralixNB> parameter is in the boot sector that is not targeted by the partiton table
<naobsd> jceel_: don't overlap header, parameter, kernel, etc. that's all.
<AstralixNB> careful!
<AstralixNB> kernel is overlapping a normal partition
<AstralixNB> you have to keep some free space in front of the first partiton
<naobsd> well, yes, it's ok to overlap if you understand well :)
<naobsd> e.g. 1st partition for parameter, 2nd partition for kernel etc
<naobsd> don't format them ;)
<jceel_> I think I'll just add first MBR partition starting at 40MB
<jceel_> which seems safe
<naobsd> agree
<AstralixNB> right, that is what is written at radxa wiki too. keep abt. 32MB free in front of first partiton
<AstralixNB> btw... starting Sclipse on NAND: 2min. starting Eclipse on SD: 34s
<naobsd> lol
<naobsd> I'm using USB HDD for root fs
<AstralixNB> cross-compiling mid size AVR project on NAND: 36s, on SD: 26s
wickwire_ has joined #radxa
<AstralixNB> I'll upgrade to your rkflashtool tonight and check what I have left on my drives from my improvements for it from last year
wickwire has quit [Ping timeout: 244 seconds]
<AstralixNB> Then I will probably figure out some short cuts to download and start a kernel image. These M commands look very promising!
<naobsd> I'll improve "fastboot boot", then my USB boot hack will be obsoleted ;)
<AstralixNB> with external sd you should not need any initramfs as the rootfs is available after starting the driver
<AstralixNB> while NAND needs installation of the rknand.ko
jceel_ has quit [Ping timeout: 260 seconds]
<naobsd> maybe /dev/ need to be populated
<naobsd> it depend how distro rootfs boot
<AstralixNB> could be. I check that later
jceel has joined #radxa
<ganbold_> jceel: booted freebsd?
AstralixNB has quit [Ping timeout: 250 seconds]
FreezingCold has quit [Read error: Connection reset by peer]
FreezingCold has joined #radxa
jceel has quit [Ping timeout: 244 seconds]
<naobsd> ganbold_: is he FreeBSD committer?
<ganbold_> naobsd: yes
FreezingCold has quit [Read error: Connection reset by peer]
FreezingCold has joined #radxa
mrcan__ has joined #radxa
mrcan_ has quit [Ping timeout: 258 seconds]
akaizen has joined #radxa
FreezingCold has quit [Read error: Connection reset by peer]
FreezingCold has joined #radxa
gb_master has joined #radxa
Astralix has joined #radxa
bengal has joined #radxa
gb_master has quit [Remote host closed the connection]
wickwire_ has quit [Quit: Leaving]
akaizen has quit [Remote host closed the connection]
akaizen has joined #radxa
akaizen has quit [Ping timeout: 250 seconds]
FreezingCold has quit [Read error: Connection reset by peer]
FreezingCold has joined #radxa
akaizen has joined #radxa
akaizen has quit [Ping timeout: 260 seconds]
akaizen has joined #radxa
akaizen_ has joined #radxa
akaizen has quit [Ping timeout: 272 seconds]
wickwire has joined #radxa
hramrach_ has quit [Remote host closed the connection]
hramrach_ has joined #radxa
bengal has quit [Quit: Leaving]
wickwire has quit [Remote host closed the connection]
naobsd has quit [Quit: Page closed]
hipboi has quit [Ping timeout: 246 seconds]