Re: about power control.回复: Call for Gardening Tasks
Andrew Jeffery
andrew at aj.id.au
Thu Apr 23 13:48:55 AEST 2020
On Wed, 22 Apr 2020, at 00:20, zhouyuanqing8 at outlook.com wrote:
> Hi
>
> This is a very good idea. As the first time to do openbmc, I look
> forward to it. Currently, I am being troubled by the problems you
> describe.
>
> The following questions, please also help you answer it, thank you very much.
>
> 1.I modified the dts file, how to use the command "bitbake -f
> linux-aspeed" to Generate fitimage and dub?
> Now, I modify the dts file in the kernel source directory. When I
> compile, bitbake will re-fetch the source code, decompress, patch,
> configure, and compile, causing my changes to be overwritten. I
> currently use manual call scripts to compile dts files and make images
> for debugging.Is there a way to make bitbake skip the previous steps
> and compile directly?
Two approaches here:
1. Use `devtool`[1], (`devtool modify linux-aspeed`), and then hack
on the source that gets extracted
2. Use your own fork of the kernel hack the linux-aspeed recipe to point
to your local repo.
[1] https://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#dev-modifying-source-code
Diverging further, you can just build your own kernel out of your kernel
source tree and netboot it on the BMC (either hardware or qemu). It
depends on what your needs are, but netbooting is great for doing kernel
development and testing (as opposed to building images to be deployed).
>
>
> 2.The size of image-rwfs is 0, I want to use rwfs debugging, how to
> configure to generate a normal image-rwfs?
> -rw-r--r--. 2 harleyzhou harleyzhou 9443 4月 7 17:27
> obmc-phosphor-image-xxh-20200407092558.rootfs.manifest
> -rw-r--r--. 2 harleyzhou harleyzhou 18214912 4月 7 17:27
> obmc-phosphor-image-xxh-20200407092558.rootfs.squashfs-xz
> -rw-rw-r--. 2 harleyzhou harleyzhou 33554432 4月 7 17:27
> obmc-phosphor-image-xxh-20200407092558.static.mtd
> -rw-rw-r--. 2 harleyzhou harleyzhou 33566720 4月 7 17:28
> obmc-phosphor-image-xxh-20200407092558.static.mtd.all.tar
> -rw-rw-r--. 2 harleyzhou harleyzhou 22384640 4月 7 17:28
> obmc-phosphor-image-xxh-20200407092558.static.mtd.tar
> -rw-r--r--. 2 harleyzhou harleyzhou 308218 4月 7 17:27
> obmc-phosphor-image-xxh-20200407092558.testdata.json
> -rw-r--r--. 2 harleyzhou harleyzhou 0 4月 7 17:27
> obmc-phosphor-image-xxh.jffs2
As long as the flash partition is erased jffs2 will be happy to mount it, so
depending on your circumstances you may not need any data in
image-rwfs.
Hope that helps,
Andrew
More information about the openbmc
mailing list