OpenNetworkLinux icon indicating copy to clipboard operation
OpenNetworkLinux copied to clipboard

[ONL Arm64] ONL-BOOT partition size cannot be customized

Open AntheaJiang opened this issue 1 year ago • 6 comments

Hi: I'm working on ONL Arm64,and I found "ONL-BOOT" partition cannot be customized, but any three partition size can be customized seccessfully. Has anyone ever encountered such a problem: ONL-BOOT partition size is always 16GB no matter what size I set in package/platform/xx/arm64/xx/platform-config/r0/src/lib/xxxx-r0.yml image Here is the code configuration: image

I tried to set the "ONL-BOOT" size to 64MiB,it doesn't work,and the log is just like below: image

AntheaJiang avatar Dec 06 '23 09:12 AntheaJiang

Also I tried to change "ONL-BOOT" partition format to "ext4" just like other three partition, still didn't work.: image

AntheaJiang avatar Dec 06 '23 09:12 AntheaJiang

Off-topic:

I'm working on ONL Arm64

Please keep in mind, that Open Network Linux is currently unmaintained, and it is not recommended to use it due to outdated software. (It of course depends on your threat model, how exposed the device is.)

paulmenzel avatar Dec 06 '23 09:12 paulmenzel

Hello,

I am the maintainer for ONL. What do you have configured here:

https://github.com/opencomputeproject/OpenNetworkLinux/blob/e85f118fb6400caf869f4a83b92c0bc3123962da/packages/base/all/vendor-config-onl/src/lib/platform-config-defaults-uboot.yml#L174

On Wed, Dec 6, 2023, 1:42 AM AntheaJiang @.***> wrote:

Also I tried to change "ONL-BOOT" partition format to "ext4" just like other three partition, still didn't work.: image.png (view on web) https://github.com/opencomputeproject/OpenNetworkLinux/assets/87740133/395afea6-5350-4da0-a1a4-ae3fc48a2a0b

— Reply to this email directly, view it on GitHub https://github.com/opencomputeproject/OpenNetworkLinux/issues/967#issuecomment-1842527462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP5WH4ECPB3AF4T5JPLW5LYIA4ZFAVCNFSM6AAAAABAJCGJK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBSGUZDONBWGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sonoble avatar Dec 06 '23 15:12 sonoble

Thanks for your support. And I didn't change any code in this file: image

Hello, I am the maintainer for ONL. What do you have configured here: https://github.com/opencomputeproject/OpenNetworkLinux/blob/e85f118fb6400caf869f4a83b92c0bc3123962da/packages/base/all/vendor-config-onl/src/lib/platform-config-defaults-uboot.yml#L174 On Wed, Dec 6, 2023, 1:42 AM AntheaJiang @.> wrote: Also I tried to change "ONL-BOOT" partition format to "ext4" just like other three partition, still didn't work.: image.png (view on web) https://github.com/opencomputeproject/OpenNetworkLinux/assets/87740133/395afea6-5350-4da0-a1a4-ae3fc48a2a0b — Reply to this email directly, view it on GitHub <#967 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP5WH4ECPB3AF4T5JPLW5LYIA4ZFAVCNFSM6AAAAABAJCGJK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBSGUZDONBWGI . You are receiving this because you are subscribed to this thread.Message ID: @.>

AntheaJiang avatar Dec 07 '23 01:12 AntheaJiang

It seems the size of partition "ON-BOOT" has some dependency on device. If install on /dev/sda.ONL-BOOT's size can keep the same with the configuration in yaml but if install on /dev/emmc.ONL-BOOT's size will be 16GiB always No matter what value is set in yaml

AntheaJiang avatar Dec 21 '23 08:12 AntheaJiang

Here is the comparte result.Parted Tool give different partition for ONL-BOOT with the same size configuration. I couldn't find the root cause.and have to give up.Just keep 16GiB for ONL-BOOT partition on /dev/mmcblk0p1. image

AntheaJiang avatar Dec 27 '23 02:12 AntheaJiang