ReCompile Kernel for Debian Image

Started by isidoro, July 29, 2013, 05:40:51 PM

Previous topic - Next topic

XFer

Right now, I'm trying to have 3.4 branch working.
I'm pulling sunxi-3.4, they merged in a sun7i-defconfig now, hopefully it'll compile.

vinifr


XFer

#17
I pulled sunxi-3.4 (not the stage version) and it has a sun7i_defconfig.
I managed to compile everything, uImage and modules, but the A20 doesn't boot, does not even start writing a kernel log.
My board is headless so I have an hard time debugging kernel-related issues (I don't have the time to look for a serial-USB cable to set up a debugging console).
I guess I'll wait for more mature kernels, or for Olimex own repository (their kernel works fine, but it's incomplete).

vinifr

Only stage/sunxi-3.4 has Hans' and hramrach's patches to A20, look sun7i: https://github.com/linux-sunxi/linux-sunxi/commits/stage/sunxi-3.4

Do you tried it? ;)

XFer

The kernel I downloaded has A20 patches (I contacted Hans directly), despite not being the stage branch.
So that's not the issue. Anyway I'm tired of trying any possible kernel. I'll wait for Dimitar to return from holidays, he should publish source and config then. :)

isidoro

#20
Quote from: XFer on August 04, 2013, 11:47:30 AM
I pulled sunxi-3.4 (not the stage version) and it has a sun7i_defconfig.
I managed to compile everything, uImage and modules, but the A20 doesn't boot, does not even start writing a kernel log.
My board is headless so I have an hard time debugging kernel-related issues (I don't have the time to look for a serial-USB cable to set up a debugging console).
I guess I'll wait for more mature kernels, or for Olimex own repository (their kernel works fine, but it's incomplete).
as in new 3.4 kernel they modifed machine id for sun7i
(see here http://linux-sunxi.org/Cubieboard2_wheezy_image and here http://androtab.info/cubieboard2/)
your uEnv.txt must begin with this line:
machid=0x10bb

meanwhile for kernel 3.3 machid remain 0xf35, but as it is saved in u-boot env, it is not necessary.





isidoro

Quote from: isidoro on August 02, 2013, 04:27:20 PM
https://github.com/patrickhwood/linux-sunxi/archive/sunxi-3.3-cb2.zip

just compiled with gcc  4.6.3, this is config:
http://pastebin.com/e3yPQ7dp


In the meanwhilte I' studiyng on how to put binary file (uImage and modules ) on amazon or google doc.

XFer

That's great, Gianni!

Could you please share your uEnv.txt and script.fex?
I suspect my problems lie there. :(

Thanks!

isidoro

Quote from: XFer on August 06, 2013, 01:03:40 PM
Could you please share your uEnv.txt and script.fex?
I suspect my problems lie there. :(

Thanks!
uEnv.txt:
console=ttyS0,115200
root=/dev/mmcblk0p2
loglevel=8
panic=10


fex file untouched , default script.bin.



XFer

#24
That's really nasty! :(
I temporary attached an HDMI screen: my kernel (now from stage/sunxi-3.4) starts and shows the login prompt.
But does not load the network, who knows why.
So being an headless board, I can't do anything. :(
The A20 Ethernet driver is built in the kernel, not even as a module, so it can't be a module loading issue.
It's going to be a long and painful debug!  :P

Thanks for your support Gianni. Eventually I'll resort to your already built kernel if I can't sort this out.

Fernando

isidoro

Quote from: XFer on August 06, 2013, 06:05:00 PM
That's really nasty! :(
I temporary attached an HDMI screen: my kernel (now from stage/sunxi-3.4) starts and shows the login prompt.
But does not load the network, who knows why.
So being an headless board, I can't do anything. :(
The A20 Ethernet driver is built in the kernel, not even as a module, so it can't be a module loading issue.

Fernando
Please, once login , do a : dmesg | grep eth
Or dmesg | grep wemac .

XFer

If I could login, I'd already done that. :)

I have no USB keyboard to attach to it (not even a HDMI screen, actually, that was a brief test at a friend's house), so I can't login without a working Ethernet.

XFer

Latest news  :)

I dropped my efforts on sunxi-3.4 and instead focused on the 3.3cp2 suggested by Isidoro.

I succesfully recompiled a trimmed down, optimized kernel that actually works, and allows to login via ssh in 25 seconds from poweroff. :)
And this is with a not particularly fast 8GB Sandisk microSD (16 MB/s tested with hdparm).
Kernel itself boots in 13 seconds.

So a big THANKS to everyone and to Isidoro in particular: grazie Gianni! :)

Fernando

XFer

Looks like USB_HOST does not fully work on 3.3.0-CB2: only keyboards and mices work (but my MIDI keyboard does not: connects and disconnects in a loop).

I've seen in the sunxi mailing list that they are reworking all the USB Host stuff in 3.4, but I'm not able to backport their patches in 3.3.0.

Anyone tried the latest 3.4 cb2? Does it work on our Olinuxino A20 boards? Any caveats?

Thanks!

Fernando

XFer

Reply to myself: tried 3.4cb2, but audio does not work. :(

sunxi audio driver fails with "audio codec_wakeup request gpio fail!"