-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milkv duo support NAND image #487
Comments
Related to riscv#487 Add support for creating NAND image for Milk-V Duo in Yocto layer. * **conf/machine/milkv-duo.conf** - Add NAND-specific configurations. - Update `IMAGE_BOOT_FILES` to include `boot.spinand`, `fip.bin`, `rootfs.spinand`, and `system.spinand`. - Update `WKS_FILE` to use `milkv-duo-spinand.wks`. * **wic/milkv-duo-spinand.wks** - Create a new `wic/milkv-duo-spinand.wks` file for NAND image creation. - Add partitions for `boot.spinand`, `fip.bin`, `rootfs.spinand`, and `system.spinand`. * **recipes-bsp/u-boot/files/milkv-duo-support-files.patch** - Add NAND-specific configurations. - Update `milkv-duo_defconfig` to include NAND support. * **recipes-bsp/milkv-duo-fsbl/milkv-duo-fsbl.bb** - Add NAND-specific configurations. - Update `do_compile` to include NAND-specific parameters.
Related to #487 Add support for creating NAND image for Milk-V Duo in Yocto layer. * **conf/machine/milkv-duo.conf** - Add NAND-specific configurations. - Update `IMAGE_BOOT_FILES` to include `boot.spinand`, `fip.bin`, `rootfs.spinand`, and `system.spinand`. - Update `WKS_FILE` to use `milkv-duo-spinand.wks`. * **wic/milkv-duo-spinand.wks** - Create a new `wic/milkv-duo-spinand.wks` file for NAND image creation. - Add partitions for `boot.spinand`, `fip.bin`, `rootfs.spinand`, and `system.spinand`. * **recipes-bsp/u-boot/files/milkv-duo-support-files.patch** - Add NAND-specific configurations. - Update `milkv-duo_defconfig` to include NAND support. * **recipes-bsp/milkv-duo-fsbl/milkv-duo-fsbl.bb** - Add NAND-specific configurations. - Update `do_compile` to include NAND-specific parameters.
Thanks |
This broke the build for me:
|
Yep, It doesn't work, I have exactly the same error |
plat/cv180x/fiptool.py does not have this option as of [1] Fixed riscv#487 (comment) [1] https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/fsbl/plat/cv181x/fiptool.py Signed-off-by: Khem Raj <[email protected]>
@ziswiler @Markus250 I have removed the non existing option for now. I assume there is a patch for https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/fsbl/plat/cv181x/fiptool.py which is missing, or the option was added wrongly. I have a patch here #510 |
@kraj Yes, without this argument, the assembly of the image has advanced. Also, I had to comment the line |
Related to riscv#487 Add support for creating NAND image for Milk-V Duo in Yocto layer. * **Remove non-existing argument**: Remove the `--NAND_BOOT=1` argument from `recipes-bsp/milkv-duo-fsbl/milkv-duo-fsbl.bb`. * **Generate required files**: Update `recipes-bsp/milkv-duo-fsbl/milkv-duo-fsbl.bb` to generate `rootfs.spinand`, `boot.spinand`, and `system.spinand` files using `mkubiimg.py`. * **Avoid file conflicts**: Remove the line `cp ${WORKDIR}/fip.bin ${DEPLOYDIR}/` from `recipes-bsp/milkv-duo-bootfiles/milkv-duo-bootfiles.bb` to avoid conflicts. * **Update partition layout**: Add steps to generate `rootfs.spinand`, `boot.spinand`, and `system.spinand` files in `wic/milkv-duo-spinand.wks`. * **Include necessary steps**: Update `kas/milkv-duo.yml` to include necessary steps for creating a NAND image.
@Markus250 does the fix proposed in #511 fix the issue ? |
@kraj Well, the assembly is going on, but the image for nand not created =( |
That seems not good. Does it work if we revert the original patch to add NAND support ? |
Unfortunately, no, if you look at how the buildroot does it, then there is more manipulations there, I tried to do it myself, but nothing worked for me |
@Markus250 ok, are you able to build if you revert b94502a ? in meta-riscv you can do git revert b94502a and build |
@kraj Yes, but need we must change the following: |
if it is breaking then I would like to revert it. Can you post the patch that works for you ? |
In buildroot I can compile image for SPI NAND next command:
./build.sh milkv-duo-spinand
and in the folder out/
I will receive the files for the firmware nand (boot.spinand, fip.bin, rootfs.spinand, system.spinand)
I load this into nand and it works
How can create an image for nand using this layer (yocto)?
sorry for my eng
The text was updated successfully, but these errors were encountered: