Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-06-2017, 10:01 AM
|
#1
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Rep:
|
Need to update glibc on embedded board
Hi,
I am developing for a MPC8543 embedded board,
The board uses Uboot 1.3.1, Linux 2.6.24 Kernel and ELDK 4.3 as rootfs
ELDK 4.3 has glibc-2.6, It's really old and does not support many new functions which I need,
I have the DTS and defconfig for my board (although for kernel 2.6.24),
What is the procedure to update the libc?, Do I need to update all the components (rootfs, kernel and uboot)?
Or one of them is enough?,
Thanks.
|
|
|
01-06-2017, 11:25 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932
|
Glibc is one of the fundamental packages in the toolchain. Any major version update of glibc would probably break things, as it changes the support libraries that everything uses. Even worse, it could introduce a 'maybe' into reliability with weirdo intermittent faults. I would plan a system upgrade. If you don't have source, you have a real problem. The LFS mailing list archives used to have much on this question
http://www.linuxfromscratch.org
|
|
|
01-06-2017, 06:44 PM
|
#3
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
Glibc is one of the fundamental packages in the toolchain. Any major version update of glibc would probably break things, as it changes the support libraries that everything uses. Even worse, it could introduce a 'maybe' into reliability with weirdo intermittent faults. I would plan a system upgrade. If you don't have source, you have a real problem. The LFS mailing list archives used to have much on this question
http://www.linuxfromscratch.org
|
I do have the defconfig and DTS for kernel version 2.6.24,
Yet newer versions introduce various new things which I don't know what their values are,
What does the system upgrade include? Uboot, Kernel and rootfs?
I'm pretty scared about the uboot since I don't have a BDI at hand.
|
|
|
01-07-2017, 01:33 PM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932
|
I have had success updating old kernels to much later versions. There was some pain going to version 3.x from 2.x because a lot of required versions were updated, and my OS was aging. You need to compile only the features you need on your board. There is the option _not_ to compile in stuff. From memory, the 3.x kernel source listed all the required versions in the docs at the top of the source tree.
|
|
|
01-13-2017, 04:41 AM
|
#5
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Original Poster
Rep:
|
Okay,
Is there any need to update the u-boot or rootfs before trying to update the kernel?
|
|
|
01-13-2017, 06:17 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932
|
There is a need to back up some way you can get it back if the update causes it to puke on bootup (Worst case). If you can, add the kernel, don't replace one with the other.
|
|
|
02-10-2017, 07:52 PM
|
#7
|
LQ Newbie
Registered: Jan 2017
Posts: 4
Original Poster
Rep:
|
Okay,
I am having progress with this,
I built a new kernel (2.6.25) using older 2.6.24 dts and defconfig,
Though it's not working,
Unfortunately I am having zero input after this:
Quote:
## Booting image at 000000...
Image Name: Linux-2.6.25-EZ.1
Created: 2017-02-10 16:32:24 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1661404 Bytes = 1.58 Mb
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
> > ## Flattened Device Tree blob at 200000
> > Booting using the fdt blob at 0x200000
|
I feel like i'm missing something about the relationship between the U-Boot,Kernel and rootfs in my system,
Do I need to upgrade something else before I try and upgrade the kernel?
|
|
|
02-11-2017, 03:43 AM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932
|
Have you added support for the basic parts of your system? You need to compile in support for disk filesystems on your hd if you haven't got it, etc. defconfig is a wild guess hardly suited for a Mac or any particular machine.
|
|
|
All times are GMT -5. The time now is 11:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|