ubuntu rebuild kernel(Resolved,at the bottom)

Discuss Ubuntu related items.

ubuntu rebuild kernel(Resolved,at the bottom)

Postby kenny » Sat Jun 06, 2015 6:53 am

Hello everyone

I recently some trouble, but I tried google for long still can't find ,so i like to ask you.
I needed to recompile the kernel
I install ubuntu image form wandboard.org. and get ubuntu source code from github wandboard-org/linux.
I don't find the old config of kernel. I need the old configure,because I'm afraid I chose the wrong option.
I can find the old config by ubuntu x86,but I can't find the old config by ubunut arm.

I hope you can give me some direction
Thank you very much

by kenny
Last edited by kenny on Fri Jun 12, 2015 11:10 am, edited 1 time in total.
kenny
 
Posts: 9
Joined: Wed Dec 24, 2014 9:55 pm

Re: ubuntu rebuild kernel

Postby Wig » Sat Jun 06, 2015 3:05 pm

I don't understand, your old kernel config means 3.0.35 kernel defconfig as below?
https://github.com/wandboard-org/linux/ ... _defconfig

About new ubuntu 14.04 image, they were difference sturcture for kernel 3.10.53(new) and 3.0.35 (old), so maybe old config can't work
for new kernel. Another way, you can compare these two defconfig using diff tool, then disable the function what you want.

Thank you.
Wig
 
Posts: 78
Joined: Mon Apr 20, 2015 7:20 am

Re: ubuntu rebuild kernel

Postby kenny » Sat Jun 06, 2015 3:42 pm

Dear Wig,

Thank you for your reply.
Sorry, the last time I did not give complete information.
Wandboard Quad,Ubuntu 12.04.3 LTS (GNU/Linux 3.0.101+ armv7l)
Q1:
I have seen on google imx_v6_v7_defconfig, but I should choose mx_v6_v7_defconfig or wandboard_defconfig?
Q2:
If you can, I want to ask another question. In my recent research mmc / sd. I know the host controller partakers label.
I studied http://lxr.free-electrons.com/source/drivers/mmc/host/sdhci-esdhc-imx.c the right direction?

Thanks you
by kenny
kenny
 
Posts: 9
Joined: Wed Dec 24, 2014 9:55 pm

Re: ubuntu rebuild kernel

Postby Wig » Sun Jun 07, 2015 3:49 pm

Hi Kenny:

Ans1:
wandboard_defconfig must be better than imx_v6_v7_defconfig if you use wandboard!

Ans2:
For kernel 3.0.35 in wandboard, you can refer drivers/mmc/host/sdhci.c, it has hsot controller in this file.

Thanks
Wig
 
Posts: 78
Joined: Mon Apr 20, 2015 7:20 am

Re: ubuntu rebuild kernel

Postby kenny » Mon Jun 08, 2015 12:57 am

Dear Wig,
I am very grateful for your help.
Although I am now part of the updated kernel encountered few difficulties, but I think I'll try it on their own.
If you can, I try a few days, still not words.
I seek your help.

Thank you
by kenny
kenny
 
Posts: 9
Joined: Wed Dec 24, 2014 9:55 pm

Re: ubuntu rebuild kernel

Postby kenny » Wed Jun 10, 2015 8:55 am

Dear all,

I reinstall Ubuntu 14.04 SD card images from wandboard.org.
now I get source kernel from wandboard-org github.
I have read README,to complied source kernel.
sudo make wandboard_defconfig
sudo make
sudo make modules_install install
then,I want to modfly bootloader(lilo), but I can' found.
After reboot, kernel not update certainly.
I hope you can provide some suggestions.

By the way, I see Wandboard eewiki https://eewiki.net/display/linuxonarm/Wandboard
He seems a little cumbersome but also rewrite the SD card.
Hoping to just change the kernel, other do not change.
Or compiled kernel, eewiki method is the only?

Thank you very much for your patience and pointing
kenny
 
Posts: 9
Joined: Wed Dec 24, 2014 9:55 pm

Re: ubuntu rebuild kernel

Postby kenny » Thu Jun 11, 2015 3:10 pm

Dear all,
I solved my problem, I will process record to like me who need it.

wandboard imx6 quad
sd card image Ubuntu 14.04 SD card images from wandboard-org
kernel source from wandboard-org github
=======================================
compile kernel steps

make wandboard_defconfig
make
=======================================
copy imx6dl-wandboard.dtb imx6q-wandboard.dtb zImage to the boot directory
my os in mmcblk2,so I mount mmcblk2p1 (mmcblk2p2 is Root directory)

mkdir -p abc
mount /dev/mmcblk2p1 /home/ubuntu/abc
cp linux-wandboard_imx_3.10.53_1.1.0_ga/arch/arm/boot/imx6dl-wandboard.dtb /home/ubuntu/abc/boot
cp linux-wandboard_imx_3.10.53_1.1.0_ga/arch/arm/boot/imx6q-wandboard.dtb /home/ubuntu/abc/boot
cp linux-wandboard_imx_3.10.53_1.1.0_ga/arch/arm/boot/zImage /home/ubuntu/abc/boot

umount /home/ubuntu/abc

then,reboot.


Thank all.
kenny
 
Posts: 9
Joined: Wed Dec 24, 2014 9:55 pm


Return to Software - Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests

cron