00:12
leowt has quit [Quit: leowt]
04:25
Astralix has joined #linux-rockchip
04:26
Astralix|afk has quit [Ping timeout: 248 seconds]
08:48
mmind00 has joined #linux-rockchip
08:52
<
Astralix >
looks like west is waking up+
09:03
<
Astralix >
Does anyon of you know how to pack a bootimg?
09:18
<
naobsd >
rkcrc for ramdisk only boot.img and mkbootimg for kernel+ramdisk boot.img (same for recovery.img)
09:20
<
Astralix >
I need to have a bootimg without kernel and my mkbootimg fails on not having kernel
09:21
<
naobsd >
you can use both type regardless of the type used in stock rom
09:21
<
mmind00 >
for the android type you could also use abootimg which is in most linux distributions
09:23
<
Astralix >
I'll go for android
09:23
<
Astralix >
so just need an boot.img without kernel as RK Bootloader prefers boot.img kernel before kernel.img
09:24
<
mmind00 >
hmm, no then :-)
09:24
<
mmind00 >
the android boot img is used for the recovery stuff
09:24
<
naobsd >
is there abootimg which supports rockchip's id generation?
09:24
<
Astralix >
don't know
09:25
<
Astralix >
I am normally only doing kernel
09:25
<
mmind00 >
no, abootimg is only for the android type images
09:25
<
naobsd >
I'm speaking android type image
09:25
<
Astralix >
ok, the kernel supports make boot.img
09:25
<
naobsd >
mkbootimg for rockchip is bit different than standard one
09:25
<
Astralix >
but requires to be linked inside android build system
09:26
<
naobsd >
mkbootimg is a part of android build system
09:27
<
Astralix >
yes, but it forces to have kernel inside. That is pretty painful if you recompile kernel every minute and have to pack bootimg all the time
09:27
<
Astralix >
And I do not have sources for this android that I use
09:27
<
naobsd >
if you modify kernel so often, but not ramdisk, then ramdisk only boot.img is better
09:27
<
Astralix >
I dismounted update.img and separated images
09:28
<
Astralix >
Yea, aou got it
09:28
<
Astralix >
you got it
09:28
<
Astralix >
I like to have a simple ramdisk only bootimage for RK31xx
09:28
<
naobsd >
what's "android build system"? script for unpack & repack update.img
09:29
<
naobsd >
you think you need "android build system" to use mkbootimg, right?
09:30
<
naobsd >
sorry, I couldn't understand "but requires to be linked inside android build system"
09:30
<
Astralix >
I think I need android build system to use the kernels Makefile option "make boot.img"
09:30
<
Astralix >
Modern Android likes to have the kernel inside
09:31
<
Astralix >
kernel is build and put into required images with "make lunch"
09:31
<
Astralix >
Before Android 4.2.x the kernel could stay outside.
09:31
<
naobsd >
mkbootimg just requires binary(compiled) kernel and ramdisk binary, you can use mkbootimg out of build system. no need to recompile everything
09:31
<
Astralix >
Yes I know
09:32
<
Astralix >
but mkbootimg insists on having kernel
09:32
<
naobsd >
and not good for your work, I see.
09:32
<
Astralix >
I don't want to, as the rockchip bootloader then boots this kernel
09:32
<
Astralix >
so I'd prefer the old way ramdisk -> boot.img, kernel -> kernel.img
09:33
<
Astralix >
So could it be, that you just cpio the ramdisk and put rkcrc around it to have boot.img?
09:33
<
naobsd >
anyway, please use rkcrc in rkutils
09:33
<
Astralix >
I have all these tools and I even have android build system.
09:34
<
Astralix >
But for kernel tests I need to have an Android that I know of it is working.
09:34
<
Astralix >
Bad idea to test something in an untested surrounding. So I use original manufacturers android and just exchange the kernel
09:35
<
naobsd >
rkcrc -k cpio+gz(format depend on kernel config) boot.img
09:35
<
naobsd >
should work
09:36
<
naobsd >
you can try rkunpack stock-boot.img, rkcrc -k stock-boot.img.raw new-boot.img
09:36
<
naobsd >
stock-boot.img and new-boot.img must be 100% same
09:37
<
naobsd >
I want more spare time to update rkutils...
09:38
<
Astralix >
ehat is the input of rkcrc?
09:38
<
Astralix >
I have ramdisk.gz
09:39
<
naobsd >
(but probably no one want decrpy function for rk2918 cramfs system.img anymore lol)
09:39
<
naobsd >
normal cpio+gz for input
09:41
<
naobsd >
8 bytes header(KRNL + payload size) + payload + 4 bytes crc
09:41
<
naobsd >
for kernel.img, payload is zImage
09:41
<
Astralix >
yes, I miss the cpio part
09:41
<
Astralix >
the rkcrc I understood
09:43
<
Astralix >
ok, think I got it
09:43
<
Astralix >
just testing
09:44
<
Astralix >
then you could add this to your tools wiki
09:44
<
naobsd >
good documentation is missing for very long time.. ;)
09:45
<
naobsd >
I can't count how many times I told how to use :)
09:45
<
naobsd >
basically format/protocol is not changed from rk2808 :)
09:46
<
Astralix >
no, that was not the problem. I know all these tools, but all of them are only a half of the solution. And they all miss documentation
09:46
<
Astralix >
I was missing the first link, coming from ramdisk/ directory to cpio+gz
09:47
<
Astralix >
But actually no luck:
09:47
<
Astralix >
Boot ver: 2013-05-18#1.20
09:47
<
Astralix >
Begin recover...
09:47
<
Astralix >
GetRemapTbl flag = 1
09:47
<
Astralix >
Load failed!
09:47
<
Astralix >
E:CRC failed!
09:47
<
Astralix >
start_linux=====54563
09:48
<
Astralix >
UsbBoot,3641728
09:48
<
Astralix >
UsbHook,4294635
09:48
<
Astralix >
powerOn,4294659
09:48
<
Astralix >
4444134 UsbConnected
09:48
<
Astralix >
4524492 UsbConnected
09:48
<
Astralix >
Ah, boot.img has wrong header!
09:48
<
Astralix >
It's showing KRNL
09:48
<
Astralix >
without kernel, the bootimg must show ANDROID
09:49
<
naobsd >
ANDROID! is for kernel+ramdisk image by mkbootimg
09:49
<
Astralix >
I can check...
09:49
<
naobsd >
sorry, away for a while
09:50
<
Astralix >
ok, you're right
10:10
<
naobsd >
Astralix: booted now?
10:10
<
Astralix >
kernel.img is too large
10:10
<
Astralix >
was the reason for the CRC error
10:10
<
Astralix >
unfortunately I cannot use my specialized toolchains on rockchip
10:11
<
Astralix >
works only on single-cores
10:13
<
naobsd >
what is specialized toolchains?
10:14
<
Astralix >
I have some gcc optimized for cortexA series including NEON/SIMD and such
10:14
<
Astralix >
Includes gold linker
10:14
<
naobsd >
probably I only tried same gcc version used for stock kernel... gcc 4.4.3
10:14
<
naobsd >
gcc 4.4.3 from aosp android prebuilt
10:14
<
Astralix >
I tested almost all of them from 4.5.x to 4.9.x
10:15
<
Astralix >
only 4.4.3 to 4.6.2 work on rockchip
10:15
<
naobsd >
I'm not sure NEON can be used in kernel space
10:15
<
Astralix >
ok, all work on 2918 but as soon as you get multicore, only the old ones work
10:15
<
naobsd >
you may try newer gcc for userland :)
10:16
<
Astralix >
I have arounf 20 different gcc installed and made a script that selects them
10:16
<
Astralix >
so depending on what project I work, I can quickly select
10:18
<
Astralix >
I will test, what fails on newer gcc and SMP support on RockChips , the I will post a fix to the gcc guys or to you for mainline RK support
10:19
<
Astralix >
But using specialized toolchains on kernel gives some % size improvement and lots of speed improvement
10:20
<
naobsd >
probably newer gcc generates more optimized non-NEON code
10:20
<
Astralix >
The problem will be, that rockchips code is not compatible to the combination of VFP and SMP.
10:20
<
Astralix >
If you check broadcom chips, it works pretty fine and fast with gcc 4.9.x
10:21
<
Astralix >
but rockchip compiled with the same toolchain crashes right in the first seconds
10:22
<
naobsd >
sometimes source code need to be modified to use newer gcc
10:24
<
naobsd >
probably you can use newer toolchain with linux-next kernel which has rockchip support in future :)
10:24
<
Astralix >
If we could do that, I will be happy to support if I can
10:26
<
naobsd >
I'm not linux guy but probably mainlining effort will be hard...
10:27
<
Astralix >
yes, the code, as it is today, will be rejected in every singe line
10:27
<
mmind00 >
correct :-)
10:27
<
mmind00 >
and it will be a long time until you get to see anything on a display
10:28
<
naobsd >
I like serial console!
10:28
<
mmind00 >
currently it can boot a debian off the sd card just fine, but you of course only get serial output
10:28
<
Astralix >
hmm... nope
10:28
<
naobsd >
very nice ;)
10:28
<
naobsd >
I forgot to ask, USB is also DW?
10:28
<
Astralix >
we have picuntu running with graphics
10:29
<
mmind00 >
Astralix: the mainline code
10:29
<
mmind00 >
naobsd: the otg is a synopsis dwc2 (drivers/staging/dwc2)
10:29
<
mmind00 >
from what I've seen it is currently limited to host support
10:30
<
Astralix >
For the synopsis there is chaos in the mainline kernel
10:30
<
mmind00 >
the s3c-hsotg does implement the gadget part of a dwc2 and should be incorporated into the real dwc2 at some point, as I've read
10:30
<
Astralix >
there are about 7 different drivers on different SOCs that are all synopsis
10:31
<
Astralix >
take the implementation from pengutronix, from their i.MX support.
10:31
<
Astralix >
I guess they started to mainline their implementation and try to replace all the others.
10:31
<
mmind00 >
nope ... i.e. the real dwc2 driver is the way to go, the usb guys won't accept a driver reimplementing the same functionality
10:32
<
Astralix >
But I can ask Robert on that topic
10:32
<
mmind00 >
interestingly it's even a synopsis guys that is working on the dwc2 driver
10:33
<
Astralix >
who's the maintainer of the dwc2?
10:33
<
mmind00 >
a Paul Zimmerman ... with a synopsys.com mail address
10:36
<
Astralix >
ok, then this crappy Ip might get enough software workarounds to work some day
10:36
<
naobsd >
oh, I see :)
10:37
<
naobsd >
then you snooped rockchip USB protocol, right?
10:37
<
Astralix >
I work with heavy wheapons
10:38
<
Astralix >
I know how to use usb sniffers as well as IDA pro advanced
10:38
<
naobsd >
well, do you have hardware analyzer?
10:38
<
naobsd >
wow, very nice :)
10:38
<
Astralix >
nope, not needed if you use Unix as host and Windows as guest
10:38
<
naobsd >
it was f***in thing when I snooped with tools for windows
10:38
<
naobsd >
yes I know
10:39
<
Astralix >
But i do sometimes not release information, as I have some contacts in RK that sometimes anwer my emails.
10:39
<
naobsd >
it's useful todays PC spec
10:39
<
Astralix >
And I didn't want to offend them too much, before giving them a chance to answer my emails
10:39
<
naobsd >
I'm weak, but I have no relation to RK, so I'm free :)
10:39
<
naobsd >
I can understand it
10:40
<
Astralix >
They learned that they have two chances to answer, otherwize I put my resuilts online
10:40
<
naobsd >
my question is, is there any problem to add "push image to ram, then boot it" function to rkflashtool
10:40
<
Astralix >
Nex to come is a fully disassembled bootloader
10:41
<
Astralix >
I have both of them on my drive. The mask rom loader from the 3066 and the bootloader from NAND
10:41
<
naobsd >
I can't find answer to extra 2 bytes to flash bootloader via USB yet
10:42
<
naobsd >
I wonder why you didn't know how to make ramdisk-only boot.img :)
10:43
<
Astralix >
what I would like to see first is, how to format flash so defects are blacklisted and how to check flash how worn out it already is
10:43
<
Astralix >
You know, the boot image things are file systems and OMA, Jochen and Lars took care of it
10:43
<
Astralix >
Therefore I can probe out your touchscreen chip and it's I2C protoocol
10:44
<
Astralix >
If you have family and work you only have 3 to 4 nights of a week to work on that
10:44
<
naobsd >
I didn't know inside in your team
10:44
<
Astralix >
so I totally conectrate on kernel and lowlevel interfaces and MALI nad toolchain
10:45
<
naobsd >
I have a family and sometimes I only have less than 1 night of a month ;)
10:45
<
Astralix >
if I need a filesystem, image, android or so, I just request it and the guys look for it
10:45
<
Astralix >
if you have to do it all youself you'll make no step forward.
10:47
<
naobsd >
I was almost alone so my progress was terribly slow!
10:47
<
Astralix >
I started that way
10:48
<
Astralix >
fortunately that time there was only kernel.img carrying a kernel. So just flashing that one was enough
10:48
<
naobsd >
Astralix: is it possible to add "load kernel.img to RAM, run it" function to rkflashtool?
10:48
<
naobsd >
I think RKAndroidTool has that function
10:49
<
Astralix >
yes, should be possible
10:49
<
naobsd >
it should be useful for kernel development
10:49
<
Astralix >
guess so
10:49
<
Astralix >
like loading it from nfs/tftp
10:49
<
naobsd >
but currently I don't have enough time to snooping/writing code ;)
10:50
<
Astralix >
put a todo into my rkflashtool github
10:54
<
naobsd >
away for a while...
11:15
<
naobsd >
at that time I didn't think linux developer has interest to this kind of crap ;)
11:17
<
naobsd >
my original rkflash(still in my rkutils repo) was written for *BSD
11:17
<
naobsd >
so no one can't use it until rkflashtool is available
11:17
leowt has joined #linux-rockchip
11:18
<
naobsd >
now I can see nice developers, it must be happy :)
11:18
<
naobsd >
RK3066/RK3188 is not crap, it's nice too :)
11:18
<
Astralix >
the chips aren't crap, the code is
11:19
<
naobsd >
and final product made by small factory in china ;)
11:19
<
leowt >
naobsd: assembled
11:19
<
Astralix >
this isn't real crap... it is sometimes so and sometimes so...
11:20
<
leowt >
the thing is is that is no integration in those kinds of chinese products
11:21
<
leowt >
the "SoC vendor --> pcba" flow is very strange to us westerners
11:21
<
leowt >
i mean, those kinds of crappy chinese products you talk about
11:21
<
leowt >
nothing is developed by the same company
11:22
<
naobsd >
I think factory guys must have better soldering skill than me
11:22
<
leowt >
thats why you end up with a: fragile and crappy chassis, bad solder hw, hw bugs, no attention to sw
11:22
<
naobsd >
(but sometimes I can see terrible soldered connectors in crap)
11:22
<
leowt >
the thing is that the flow is like this:
11:23
<
leowt >
Soc Vendor - PCBA - Assembler - distributor
11:23
<
leowt >
so, where is the development company?
11:23
<
leowt >
nonexistent
11:24
<
naobsd >
I like stick style device, it has less crapinness
11:24
<
naobsd >
fewer parts, fewer faults ;)
11:24
<
leowt >
some rk scondary developers are PCBA, just because they want to get their hands on the newer chips asap so they can develop mid, and tv stick boards so they can sell to all (startup, home, small) factories
11:25
<
leowt >
so there is no produt thinkering here
11:25
<
leowt >
just sticking boards in chassis and boxes and shipping
11:25
<
leowt >
thats why you end up with such a crappy product
11:26
<
leowt >
and thats why rk doesnt care about us
11:26
<
leowt >
they sell much more that way
11:27
<
leowt >
but the real thing here
11:27
<
leowt >
is the price comparing to freescale, texas, etc
11:27
<
leowt >
for example 15 to 35 difference for a a9 quadcore
11:28
<
leowt >
thats why i believe that it is worth doing what is supposed to be the rk job, i mean, maintaning the lower stuff
11:30
<
leowt >
so 20$ difference, if i had a company, i would use allwinner/rockchip and for example contract all you guys for a dream job and still have a cheapier product with quality
11:32
<
naobsd >
I heard rockchip is going to be (relatively) open
11:32
<
leowt >
that is myth
11:32
<
leowt >
is from a video
11:32
<
leowt >
of charbax interviewing the CEO i think
11:33
<
naobsd >
he already gives some amount of help to XBMC community
11:33
<
naobsd >
of course "everything" is not open yet, but
11:34
<
leowt >
i will be happy with kernel sources
11:34
<
leowt >
for my rk8168
11:41
<
Astralix >
herman is rockchip, yes
11:41
<
Astralix >
he supports as much as he is allowed
11:44
<
leowt >
in the video the guy says they have around 300 android engineers
11:44
<
Astralix >
no wonder that they produce only crap
11:44
<
Astralix >
far too many people on that project
11:45
<
leowt >
that must have been a misunderstanding
11:47
<
leowt >
aww if google had 300 android devs full time...
11:50
<
leowt >
well, going out for a bike ride
12:31
<
naobsd >
my weekend is end
12:32
<
naobsd >
I may not join here in weekdays
12:33
<
naobsd >
I can not join discussion here in weekdays because of timezone
13:56
leowt_ has joined #linux-rockchip
13:56
leowt_ has quit [Client Quit]
13:59
leowt has quit [Ping timeout: 276 seconds]
16:24
mmind00 has joined #linux-rockchip
21:01
<
Astralix >
someone in here still?
21:02
mmind00 has quit [Read error: No route to host]
21:02
mmind00 has joined #linux-rockchip