LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-06-2017, 10:01 AM   #1
lys
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 01-06-2017, 11:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932

Rep: Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430
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
 
Old 01-06-2017, 06:44 PM   #3
lys
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
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.
 
Old 01-07-2017, 01:33 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932

Rep: Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430
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.
 
Old 01-13-2017, 04:41 AM   #5
lys
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Okay,
Is there any need to update the u-boot or rootfs before trying to update the kernel?
 
Old 01-13-2017, 06:17 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932

Rep: Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430
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.
 
Old 02-10-2017, 07:52 PM   #7
lys
LQ Newbie
 
Registered: Jan 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-11-2017, 03:43 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,932

Rep: Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430Reputation: 2430
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Testing using LTP on Beagle board (ARM based Embedded Dev Board) Rajender.G Linux - Newbie 0 07-27-2011 05:19 AM
Auto update application in a embedded board jaepi Linux - Embedded & Single-board computer 3 03-24-2011 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration