明远智睿技术论坛

 找回密码
 立即注册
搜索
查看: 2755|回复: 4
打印 上一主题 下一主题

linux 系统版本 libc libstdc++ 版本

[复制链接]

43

主题

86

帖子

421

积分

中级会员

Rank: 3Rank: 3

积分
421
跳转到指定楼层
楼主
发表于 2017-2-13 20:19:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1)现在板子的系统是Linux3.0.5  是用arm-fsl-Linux-guneabi- 编译的 libc的版本是2.13 libstdc++ de版本是6.0.16 2)想移植一个第三方库,要求使用gcc的版本 在4.7以上
3)是否可以用比较高的版本编译linux 3.0.5 系统比如 网盘中提供的4.9的版本
4)我用烧录工具移植无法解决Linux 3.1.4烧录的问题
回复

使用道具 举报

36

主题

745

帖子

2872

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2872
沙发
发表于 2017-2-14 09:26:30 | 只看该作者
如果用gcc-4.9的话,需要重新编译U-BOOT,KERNEL,文件系统的库文件和应用
回复 支持 反对

使用道具 举报

43

主题

86

帖子

421

积分

中级会员

Rank: 3Rank: 3

积分
421
板凳
 楼主| 发表于 2017-2-14 12:31:29 | 只看该作者
软件01 发表于 2017-2-14 09:26
如果用gcc-4.9的话,需要重新编译U-BOOT,KERNEL,文件系统的库文件和应用

1)F:\MYZR-IMX6\2.1_系统_Linux-3.0.35\02_源码\old_uboot-imx-imx_v2009.08_3.0.35_4.1.0--20151208
F:\MYZR-IMX6\2.1_系统_Linux-3.0.35\02_源码\old_linux-2.6-imx-imx_3.0.35_4.1.0--20160119
用gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf- 编译了
2)文件系统的库文件和应用 需要重新制作吧 ?busybox 可以吗
回复 支持 反对

使用道具 举报

43

主题

86

帖子

421

积分

中级会员

Rank: 3Rank: 3

积分
421
地板
 楼主| 发表于 2017-2-14 17:53:38 | 只看该作者
软件01 发表于 2017-2-14 09:26
如果用gcc-4.9的话,需要重新编译U-BOOT,KERNEL,文件系统的库文件和应用

用busybox 制作文件系统  从交叉工具链 中提取里libc./lib/下面的 .so
使用原来的rootfs-linux-mini.tar.bz2 解压之后用新的busybox 替换里/bin/下面的busybox
之后压缩成相应的文件名 ,之后烧录发生失败

Hub:1-Port:8
ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - VOLUME_ARRIVAL_EVT, Notify
ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, Volume Arrive/Remove or Device Arrive/Remove
ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, m_p_usb_port is not NULL, so only refresh
ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, Volume/Device Arrive
ModuleID[2] LevelID[1]: CmdOpreation[0]--set m_hDeviceArriveEvent.
ModuleID[2] LevelID[10]: CmdOpreation[0]--WaitforEvents device arrive1
ModuleID[2] LevelID[10]: CmdOperation[0] device chagned and reset to state 1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ flash_erase /dev/mtd0 0 0
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ dd if=$FILE of=/dev/mtd0 bs=512
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ tar xf $FILE
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ sh mksdcard.sh /dev/mmcblk0
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ dd if=$FILE of=/dev/mmcblk0 bs=1M seek=1 conv=fsync
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ mkfs.ext3 -j /dev/mmcblk0p1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ mkdir -p /mnt/mmcblk0p1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ mount -t ext3 /dev/mmcblk0p1 /mnt/mmcblk0p1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is pipe tar -jxv -C /mnt/mmcblk0p1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is frf
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is pipe tar -jxv -C /mnt/mmcblk0p1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is frf
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is pipe tar -jxv -C /mnt/mmcblk0p1
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is frf
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ tar jxf $FILE
ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ sh rootfs-config.sh /mnt/mmcblk0p1 myimx6ek200
ModuleID[2] LevelID[1]: PortMgrDlg(0)--MSCDevice--Command Push(no file) excute failed
ModuleID[2] LevelID[10]: CmdOperation[0], current command executed failed, so SetEvent(hDevCanDeleteEvent)
ModuleID[2] LevelID[10]: CCmdOpreation[0] thread is Closed
ModuleID[2] LevelID[10]: CCmdOpreation[0] thread is Closed
ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - EVENT_KILL
ModuleID[2] LevelID[10]: CMyExceptionHandler::OnMsgExceptionEvent() - KillExceptionHandlerThread
ModuleID[2] LevelID[10]: Exception Handler thread is closed
ModuleID[2] LevelID[1]: delete MxHidDeviceClass
ModuleID[2] LevelID[10]: Device Manager thread is closed
回复 支持 反对

使用道具 举报

36

主题

745

帖子

2872

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2872
5#
发表于 2017-2-16 15:52:07 | 只看该作者
jack 发表于 2017-2-14 17:53
用busybox 制作文件系统  从交叉工具链 中提取里libc./lib/下面的 .so
使用原来的rootfs-linux-mini.tar ...

全部文件都需要重新编译,不能用老的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|明远智睿  

GMT+8, 2024-5-4 04:53 , Processed in 0.056843 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表