Add dbus, bluetoothd, hciattach and hciconfig to recovery image?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Add dbus, bluetoothd, hciattach and hciconfig to recovery image?

跳至解决方案
1,713 次查看
thomasdamgaard
Contributor II

Hi,

I want to add the bluetooth services and tools (bluetoothd, dbus-daemon, hciconfig, hciattach etc.) to the recovery image.

I can see that they are placed in the system image, but I have no idea on how to add them to the recovery image.

Anyone able to help me?

/Thomas Fogh

1 解答
1,185 次查看
israelpz
Senior Contributor I

Hi,

Bluetoohd, dbus, etc are part of the filesystem so i suspect by recovery image you are referring to the filesystem.

In the MFG tool there are 3 kind of filesystem.

1) The minimal ram filesystem which is compress using cpio tool.

2) The normal or complete filesystem which is going to be written in the medium and is compress as tar archive.

3)  A variation of the last point if the medium is a NAND which instead a tar should be a jjfs2 filesystem.

The last two point is easy to generate if you are using ltib because after compile ltib is going to generate a directory rootfs and a achive rootfs.jffs2, the first one you need only to archive using tar cpf rootfs.tar rootfs/ and the seconds is already done.

Only copy those to the MFG tool OS firmware directory and maybe modify the script and is done. The first one cpio you need to compress the filesystem using the cpio tool or decompress the existing one and add your tools.

There's a Linux document on how do that i add the link.

https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

Linux cpio Examples: How to Create and Extract cpio Archives (and tar archives)

Regards,

-Israel.

在原帖中查看解决方案

3 回复数
1,185 次查看
YixingKong
Senior Contributor IV

Thomas

Has your question been answered? If yes, please click Correct answer/Helpful Answer, otherwise the DI will be closed in 3 days.

Regards,

Yixing

0 项奖励
回复
1,185 次查看
YixingKong
Senior Contributor IV

Thomas

Has your question been answered? If yes, please click Correct answer/Helpful Answer, otherwise please keep work with our engineers with emails.

Thanks,

Yixing

0 项奖励
回复
1,186 次查看
israelpz
Senior Contributor I

Hi,

Bluetoohd, dbus, etc are part of the filesystem so i suspect by recovery image you are referring to the filesystem.

In the MFG tool there are 3 kind of filesystem.

1) The minimal ram filesystem which is compress using cpio tool.

2) The normal or complete filesystem which is going to be written in the medium and is compress as tar archive.

3)  A variation of the last point if the medium is a NAND which instead a tar should be a jjfs2 filesystem.

The last two point is easy to generate if you are using ltib because after compile ltib is going to generate a directory rootfs and a achive rootfs.jffs2, the first one you need only to archive using tar cpf rootfs.tar rootfs/ and the seconds is already done.

Only copy those to the MFG tool OS firmware directory and maybe modify the script and is done. The first one cpio you need to compress the filesystem using the cpio tool or decompress the existing one and add your tools.

There's a Linux document on how do that i add the link.

https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

Linux cpio Examples: How to Create and Extract cpio Archives (and tar archives)

Regards,

-Israel.