ChanServ changed the topic of #radxa to: http://radxa.com/ - Logs: http://irclog.whitequark.org/radxa
<naobsd> Astralix1: what error? you should use RK official toolchain like this http://androtab.info/memopad/kernel/
<naobsd> "how to install gentoo on RR" is in my todo list too very long time ;)
<naobsd> but basically it's "let's get stage3 tarball and follow official guide"
irsol has quit [Ping timeout: 245 seconds]
irsol has joined #radxa
npcomp is now known as npcomp|away
ganbold_ has quit [Ping timeout: 245 seconds]
AstralixNB1 has joined #radxa
Astralix has joined #radxa
AstralixNB has quit [Ping timeout: 250 seconds]
Astralix1 has quit [Ping timeout: 250 seconds]
irsol has quit [Ping timeout: 240 seconds]
irsol has joined #radxa
ganbold_ has joined #radxa
naobsd has quit [Quit: Page closed]
irsol has quit [Ping timeout: 250 seconds]
irsol has joined #radxa
irsol has quit [Read error: Connection reset by peer]
irsol has joined #radxa
FreezingCold has quit [Ping timeout: 272 seconds]
gb_master has joined #radxa
<gb_master> hello again guys
<gb_master> so, I flashed ubuntu on the sd and it actually booted
<gb_master> (which is good news by itself)
<gb_master> now I changed the rootfs with gentoo's stage3
<gb_master> but I can see only the 4 penguins at boot (no boot lines, anything) and the green LED is blinking
<gb_master> I actually don't understand... shouldn't I see the boot messages on the screen?
akaizen has quit [Remote host closed the connection]
akaizen has joined #radxa
akaizen has quit [Ping timeout: 272 seconds]
<gb_master> got gentoo running :)
<mrueg> gb_master: cool :)
<gb_master> definitely
<gb_master> but I got everything working in a REALLY weird way
<mrueg> gb_master: what do you mean by weird? ;)
<gb_master> I had to flash the ubuntu image on the SD
<gb_master> this created the partition and (I think) the needed information to boot the SD at the beginning of the SD itself
<gb_master> then I had to change the rootfs with stage3
<gb_master> then use some qemu-arm-static connection to configure it, as I get only the 4 penguins at the boot screen
<gb_master> (even if the system is actually working)
<gb_master> now I have a working SD
<gb_master> I don't know if the procedure I followed has some meaning
<gb_master> I presume the kernel is in the boot section of the SD
<gb_master> I don't know
<mrueg> well i think you have to adjust the parameters file otherwise
<gb_master> for the kernel?
<mrueg> no for the partition layout
<gb_master> ah ok
<gb_master> what if I need to recompile the kernel?
<mrueg> well if you want to do that i recommend to dd the kernel image to the boot partition
<gb_master> problem is that there's no real boot partition
<mrueg> yes i know
<gb_master> ah ok
<mrueg> the partition where the kernel sits
<mrueg> ;)
<gb_master> hehe
<gb_master> too bad I can't mount it on /boot
<gb_master> it would be far way easier
<mrueg> gb_master: you can try to compile the kernel from my overlay
<gb_master> I was actually giving a look at that
<gb_master> 3.10
<gb_master> wow
<gb_master> is it fully working?
<mrueg> no it isn't
<mrueg> use the 3.0.36
<gb_master> what's missing?
<mrueg> it is booting the kernel but not gentoo
<gb_master> :'(
<mrueg> not sure what is missing there.
<gb_master> no problem
<mrueg> you might wanna join #linux-rockchip too
<mrueg> there are some devs working on kernel support for radxa
<gb_master> good
<gb_master> what if I'd like to mount / on an external HDD?
<mrueg> you mean the rootfs non on µsd but on external HDD?
<gb_master> yes
<gb_master> using the SD just for booting
<mrueg> then you have to update the parameter file
<mrueg> not sure if that works
<gb_master> mmm
<gb_master> but then the kernel goes where?
<mrueg> depends on where you want it ;)
<gb_master> ok, let me get this straight
<mrueg> i guess it is still on nand
<gb_master> ah
<gb_master> ok, I thought it was on the SD
<mrueg> syncing the portage tree to sd is slow :/
<mrueg> i should move to a usb device
<gb_master> yes, that's why
<mrueg> maybe a squashfs will tune this a bit
<gb_master> maybe
naobsd has joined #radxa
FreezingCold has joined #radxa
npcomp|away is now known as npcomp
ganbold_ has quit [Ping timeout: 240 seconds]
ganbold_ has joined #radxa
gb_master has quit [Ping timeout: 246 seconds]
akaizen has joined #radxa
<Astralix> naobsd are you there... yes you are
<naobsd> well?
<Astralix> naobsd, I compiled the kernel exactly as told in the wiki, and it fails.
<Astralix> I compiled it with the 3.10 preview you told me to use and the compile finished
<Astralix> I checked out stable-3.0 branch and I can find
<Astralix> radxa_rock_pro_linux_defconfig
<Astralix> and
<Astralix> radxa_rock_linux_defconfig
<Astralix> I took the last one as I have a preview-board, not the pro
<naobsd> I think I didn't recommend 3.10 kernel...
<naobsd> and I asked about error, and I recommend RK official toolchain
<Astralix> I have never compiled any 3.0.xx rockchips kernel with less than a 4.8.2 hardfloat gcc and all of them worked. What has gone wrong?
<Astralix> I thought you recommendet me the origin/wip/lsk-android-14.04-radxa-rock
<Astralix> And this one compiled till yesterday. Then it started to fail with something like this
<Astralix> /radxa_linux/kernel_rockchip/drivers/gpu/arm/t6xx/kbase/src/linux/mali_kbase_mem_linux.c:1334:49: error: ‘VM_RESERVED’ undeclared (first use in this function)
<Astralix> vma->vm_flags |= VM_DONTCOPY | VM_DONTEXPAND | VM_RESERVED | VM_IO;
<Astralix> ok, let' check, switching to 4.6 androideabi
<Astralix> checkout stable-3.0
<naobsd> well
<Astralix> make O=../out radxa_rock_defconfig
<Astralix> cd ../out
<Astralix> make -j12
<Astralix> already failed
<naobsd> you didn't provide about your problem more than "it fails", I cannot answer any "sure" thing :(
<Astralix> just a second
<Astralix> radxa_linux/kernel_rockchip/arch/arm/mach-rk3188/../mach-rk30/ddr.c:3682:1: fatal error: opening dependency file arch/arm/mach-rk3188/../mach-rk30/.ddr.o.d: No such file or directory
<naobsd> about gcc, what I said is arm-eabi-4.6, not androideabi
<naobsd> please remove "O=../out"
bengal has joined #radxa
<Astralix> I provided patches to repair the out of tree build for 3 years now to any rk kernel I see
<naobsd> you said radxa's tree must have fix?
<Astralix> There are several bugs in the makefiles RK added... and they keep these bus since the first RK2918 kernel I ever saw
<naobsd> well
<Astralix> I check again and provide you the fixes
<Astralix> But this kernel is based on gallads kernel, if I see the comments
<naobsd> what do you need? how to compile radxa's tree? want to talk how RK tree bad?
<Astralix> I have to check.
<naobsd> what is "this kernel"?
<Astralix> The radxa tree
<Astralix> wait
<naobsd> no, it's not "gallads kernel" at all
<naobsd> it's rockchip's kernel + radxa's fix
<naobsd> it's rockchip + radxa tree
<Astralix> Probably I mixed some of the many information I got in the last days while trying to boot linux on my radxa, without taking one of the prepared images
<Astralix> I didn't want to offend you. sorry!
<Astralix> However, take a look at galland, omegamoon or even my kernels. Most of them can be compiled out of tree and they work pretty fine and fast with gcc 4.8.2hf and newer.
<naobsd> well
<Astralix> But I didn't want ot be creepy, I just wanted to build ubuntu desktop based on latest greatest things available
<Astralix> The preview radxa's are not well supported, what I understand, there are only 100 of them.
<naobsd> which do you want, compile radxa's kernel, or say how good your kernels?
<naobsd> and you know how to fix, no need to ask me :(
<Astralix> I want to share information to get the best of what is there. If you have something good for me, I'd be happy to take it and if I find something good for you, I send it to you
<naobsd> you objected all my answers
<naobsd> thank you
<Astralix> No, compiler finished using 4.6.2 with no-out-of tree
<Astralix> so as soon, as I find the problem why it doesn't build out-of-tree I send you a patch
<naobsd> Makefile need to be fixed
<Astralix> Cause compiling in kernel source tree makes work with git so ugly cause of the million of un-watched files.
<Astralix> yes
<Astralix> I didn't object anything you told me.
<Astralix> I was just wondering why some of the problems are still there
<naobsd> linux-rockchip kernel repository have no relation to any other kernel repository
<naobsd> and it has full history
<Astralix> Yes, as I said, could be my fault. I checkt many pages of people, who describe how to install linux on an RK3188 board
<Astralix> So I may have mixed some info. However it is open source, so taking patches and updates from other people is not forbidden
<Astralix> [ 0.000000] Linux version 3.0.36+ (astralix@BigBox) (gcc version 4.6 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Sun Oct 5 19:08:14 CEST 2014
<naobsd> some "other people"'s repository doesn't keep history. any changes in that repository cannot be reused because author is not clear.
<naobsd> if you send patches to me/linux-rockchip, please make sure that you're the author(you have copyright), otherwise it cannot be merged
<Astralix> I am doing open source long enough to keep that in mind
<Astralix> The problems of the past where ugly.
<naobsd> sadly it seems some of "other people" doesn't have experience about open source like you
<Astralix> there where only kernels lekaed by OEMs, and they often where only non-working snap-shots.
<naobsd> I know leaked source didn't have history
<Astralix> This was the reason why often kernels popped up in github, that had no history
<naobsd> what I said is the things after first big commit
<Astralix> Yes, was a hard time. We didn't know what to do and how to fix. We didn't had any manual or schematics.
<Astralix> We didn't have any support nor any internal information
<Astralix> But we even ported JB to RK2918...
<naobsd> what I said is, some people committed others work as own work
<naobsd> I don't blame about your great effort
<naobsd> I'm not talking about your work.
<Astralix> OK, I missunderstood you
<naobsd> then
<naobsd> you compiled stable-3.0
<Astralix> Yes
<Astralix> It boots and failes at DDR init.
<naobsd> it should have issue, what I recommend is radxa-dev-kk
<naobsd> oops
<naobsd> DDR should work fine :(
<Astralix> But it could be as wiki is for radxa Lit or Pro, I have Preview
<naobsd> what was the problem with Radxa's prebuilt image? I think it was not DDR
<Astralix> With the prebuilt images it is different
<Astralix> most of them just give no video and continuosly send lclc1 error messages
<Astralix> on some others the serial port is flooded with i2c error messages and no video too
<Astralix> If I install the server version, I have 4 Tux on the screen, but no desktop
<naobsd> can you try RK loader 2.10 used in Radxa's prebuilt?
<Astralix> I had the 2.08 in the prebuilt
<Astralix> Can check this
<naobsd> server doesn't have fb console, 4 penguins is fine
<naobsd> ah, it may be 2.08
<Astralix> I was advised to take 2.16... by rk...
<Astralix> Ok, I can downgrade
<naobsd> I don't have 2.16
<Astralix> I got the full package, Loader and modules
<Astralix> Ok, Loader 2.08 same result
<Astralix> If you check the wiki, it just tells to install the "sudo apt-get install gcc-arm-linux-gnueabihf build..." toolchain, not a special one.
<naobsd> yes, I read wiki
<naobsd> I just prefer to use official toolchain, especially while trouble shooting
<naobsd> and official procedure.
<Astralix> sure
<Astralix> that is why I stepped back and tried what you told me
<Astralix> now, using the arm-linux-gnueabihf version it gets even funnier
<Astralix> start_linux=====302839
<Astralix> SHA ERROR!
<Astralix> Load failed!
<Astralix> E:Invaid tag(0x4D524150)!
<Astralix> ok... deleted boot.img and did the mkbootimg thing again. Then I downloaded the image again and it works
<naobsd> no DDR problem?
<Astralix> With arm-linux-gnueabihf 4.8.2 DDR works but the kernel has some other issues
<Astralix> :)
<Astralix> With starting console on ttyFIQ0 it duplicates avery printed line... That is funny...
<Astralix> Hello echo..o..o..o..
<naobsd> at least there is something depend on gcc version...
<Astralix> yes definately
<Astralix> CMDLINE:console=ttyFIQ0,115200 console=tty0
<Astralix> this is probably a problem in my parameter
<naobsd> I can't say what is better/best, but
<naobsd> if you have time, please try radxa-dev-kk with gcc eabi 4.6
<naobsd> that is what I'm using
<Astralix> sure, I can try
<Astralix> Maybe I need to explain that again, I am really interested in cooperation to get the pretty radxa going strong.
<naobsd> (and probably my kernel is not latest radxa-dev-kk, not sure, I cannot see my board for now)
<naobsd> I'm not radxa person, but I'm sure radxa accept improvement
<Astralix> Lesson 1 learned... whatch your compiler
<Astralix> Lesson 2 learned, delete boot.img before using mkbootimg again
<Astralix> btw. I tried the android NAND image and the android SD-Card image of the radxa Lite and both have the same issues as the linux prebuilts
<naobsd> about lite, there are 2 lite, one is old, compatible with full, another is new, compatible with pro
<naobsd> and I'm not sure about recent images from Radxa
<Astralix> Hmm, probably it would be somewhat easier for less experienced people, to find the appropriate defconfig by the full name
<Astralix> Ok, went to radxa_dev_kk and it boots, but then fails at rk1000_control_probe
<naobsd> feel strange
<naobsd> can you try gcc 4.6? (I'm not sure what happen)
<Astralix> 4.6
<Astralix> naobsd, if you read the backlog: radxa_dev_kk fails with 4.6 right after the DDR init.
<Astralix> AFAIR there was a Cortex specific thing changed in kernel for CPU startup and timer handling.
<Astralix> But at the time of this changes there where two solutions: One was a change in the assembler startup code, one was a patch of the compiler
<Astralix> But I am not sure if it makes sense to fix something for an old kernl or old compiler
<Astralix> I will continue to get started on a current set of tools widely available and that is probably linaro gcc 4.8.2 (hf)
c0d3z3r0 has quit [Ping timeout: 245 seconds]
c0d3z3r0 has joined #radxa
bengal has quit [Quit: Leaving]
AstralixNB1 has quit [Ping timeout: 250 seconds]
tonikasch has joined #radxa
tonikasch has quit [Remote host closed the connection]