Jump to content
Sign in to follow this  
jim

Compiled kernel refuse to reboot

Recommended Posts

Hey!

Same thing here(pcduino v1)=>kernel 3.4.29+ refuse to boot, compiled from pcduino and from pc. I disabled ramdisk support(http://learn.linksprite.com/pcduino/pcduino-embedded-linux-development/how-to-build-pcduino-kernel-on-pcduino-itself/) without any success.

On using serial port debug, I see that it tries to load kernel but stay blocked...Tried with newer kernel 3.4.90 series, and all is ok...

Greets,
Alex.

Share this post


Link to post
Share on other sites

I reused precompiled kernel 3.4.29+ shipped from ubuntu image, and it works perfectly. Why own compiled kernel don't boot on pcduino v1? anyone can confirme this problem wit pcduino v2?

It seems on pcduino v3 all is ok...

Share this post


Link to post
Share on other sites

After repeating the "lesson" steps 3 time, I can confirm this issue for V1 board with 3.4.29+ kernel.

I guess, to move forward, will have to use kernel 3.4.90 as per Adussart post 

    "On using serial port debug, I see that it tries to load kernel but stay blocked...Tried with newer kernel 3.4.90 series, and all is ok..."

Unfortunately I don't  know how to do this. Is there tutorial or lesson somewhere describing how to recompile kernel using kernel 3.4.90 etc?

Thanks & Regards
Haris

Share this post


Link to post
Share on other sites

hey harishashim!

Kernel 3.4.90 can be compiled and works without any problem, but c_environnement will not works because it relies on hardwarelib that's no shipped updated to kernel 3.4.90 :-(

I can't explain how to compile kernel 3.4.90 because I'm using archlinux and procedure isn't really the same(I compile kernel from pcduino), but the better way for you to do this is to compile in vms in you x86 and follow tutorial from linksprite(use gitthub from linux-sunxi.org for kernel source)

Greets,
Alex.

Share this post


Link to post
Share on other sites

Thanks for the reply! 

    "but c_environnement will not works because it relies on hardwarelib that's no shipped updated to kernel 3.4.90 :-("

This is a bummer. I hope someone in PCDuino read this and reply a fix soon. Either a fix to 3.4.29+ or move to updated kernel.

I have made some progress. Manage to build 3.4.90 kernel by following this instruction

    http://linux-sunxi.org/Linux_Kernel

Note: The above instruction check out another git repo separate from pcduino kernel repo. Putting this note here since I am not sure whether using linux-sunxi kernel from different source is ok or not. But I am pretty sure that the instruction point to a repo that is pcduino kernel upstream.

Out of the 3.4.90 linux-sunxi kernel build, now I have 

  - uImage file
  - /lib/modules/3.4.90-00253-ge37d760

Question 1: How to integrate this to pcduino and copy it into the board? My guess is uImage goes to /boot and /lib/modules/3.4.90-00253-ge37d760 goes to /lib/modules on the board. But this sounds too simple.

Question 2: If something goes wrong and brick the board, can I recover it back by re flashing kernel and installing ubuntu? (http://www.pcduino.com/os-image-install-notes/)

Cheers!
Haris

Share this post


Link to post
Share on other sites

Good job to have successfully compiled kernel 3.4.90!  wink.gif from now to update your board's kernel you need to mount /dev/nanda and copy uImage file to it:

~#mount /dev/nanda /mnt
~#cp uImage /mnt
~#sync

I always use sync command to be sure to have cache writted to physic device...as you like ;-) and don't forget to install your's kernel module(from kernel sourcedir):

~#linux-3.4.90/make modules_install

If you have any problem, you can easily go back by reflashing,  follow the normal step to reinstall ubuntu and all will be ok. To gain time, I've created a sdcard  backup card to easily retreive my system but it needs some tricks cause the shipped board_setup.sh script from pcduino team don't works for me.

I hope that someone from pcduino team will read this post to solve problem with custom compiled 3.4.29+ kernels! because it can be very useful to compile its own kernel(case like:spi debug is buggy and need some modifs, v4l2 support, kernel with others options etc...)...

Share this post


Link to post
Share on other sites

Nice!

Thanks to Adussart help, I manage to customize the kernel, recompile and integrate it to PCDuino v1. But there is observable performance issue. For instance the desktop environment is usable but stuttering badly. To the point that I just boot directly to console now instead to the DE. In addition, I am capturing video using V4L and I see every few second the frame freeze for a second. This does not happen before.

Anyway, with this I am confirming Adussart finding that using newer 3.4.90 kernel result to bootable board. While using 3.4.29+ (which is what came with the PCDuino kernel source)  result to unbootable board.

In view of the performance issue, I am gonna have to wait for fix to 3.4.29+. This is critical.

Best Regards,
Haris

Share this post


Link to post
Share on other sites

Hey kang.yang!

Thanks for your fix, but I don't understand how it can solve main problem: 3.4.29+ customized kernel booting? Your solution can be useful for drivers compilation but for kernel compilation? do I need to replace 3.4.29+ kernel sources header with 3.4.79+?

How about kernel versionning module from 3.4.29+ compiled with 3.4.79+? it seems that you force compilation version?

Thanks for your interesest in these post,
Alex.

Share this post


Link to post
Share on other sites

Nice to see that you've reached you goal wink.gif it's always a pleasure to help other users to reach their aims!  smiley.gif

I don't have observed perf issue with 3.4.90 kernel's, maybe have you've selected kernel options that affect perf issue? what's said 'dmesg' output? 

Your perfomance issue seems related to video(v4l, xorg)? have you tried to recompil your mali driver? what's say /var/log/xorg/Xorg.0.log?  does it use fbturbo or fbdev?

Greets,
Alex.
 

Nice!

Thanks to Adussart help, I manage to customize the kernel, recompile and integrate it to PCDuino v1. But there is observable performance issue. For instance the desktop environment is usable but stuttering badly. To the point that I just boot directly to console now instead to the DE. In addition, I am capturing video using V4L and I see every few second the frame freeze for a second. This does not happen before.

Anyway, with this I am confirming Adussart finding that using newer 3.4.90 kernel result to bootable board. While using 3.4.29+ (which is what came with the PCDuino kernel source)  result to unbootable board.

In view of the performance issue, I am gonna have to wait for fix to 3.4.29+. This is critical.

Best Regards,
Haris

Share this post


Link to post
Share on other sites

I have the same issue with kernel 3.4.29+, I customized it to support Playstation Eye camera module (GSPCA) and it hangs on "Starting kernel ..." then reboots to try again and again.

My board is a PCDuinov2.
Is there some fix? I can not use a new kernel version because I need the C environment in my project.

Please PCDuino's staff fix this problem with kernel 3.4.29+, it is a simple error to reproduce and test but will help a lot the developers who own your board and the community itself.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×