please install clear text version of boot.scr to as boot.txt on bootfs

Bug #712703 reported by Alexander Sack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Wishlist
Guilherme Salgado
flash-kernel (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

putting it there will allow users to easily edit bootargs and run flash-kernel to recreate the u-boot boot.scr

would be great and safe addition ... and should be easy to do ;).

Related branches

Alexander Sack (asac)
Changed in linaro-image-tools:
importance: Undecided → Wishlist
Revision history for this message
Amit Kucheria (amitk) wrote : Re: [Bug 712703] [NEW] please install clear text version of boot.scr to /boot/boot.script on rootfs

On 11 Feb 03, Alexander Sack wrote:
> Public bug reported:
>
> putting it there will allow users to easily edit bootargs and run flash-
> kernel to recreate the u-boot boot.scr
>
> would be great and safe addition ... and should be easy to do ;).

+1 on this. Beats running 'strings boot.scr' and hacking the result.

Changed in linaro-image-tools:
status: New → Triaged
Revision history for this message
Guilherme Salgado (salgado) wrote : Re: please install clear text version of boot.scr to /boot/boot.script on rootfs

Why should it be in the rootfs and not in the bootfs alongside the boot.scr that is generated from it?

Revision history for this message
Amit Kucheria (amitk) wrote : Re: [Bug 712703] Re: please install clear text version of boot.scr to /boot/boot.script on rootfs

On 11 Feb 09, Guilherme Salgado wrote:
> Why should it be in the rootfs and not in the bootfs alongside the
> boot.scr that is generated from it?

The bug headline does point to /boot, so that is fine. /boot is part of the
rootfs technically :)

Revision history for this message
Loïc Minier (lool) wrote : Re: please install clear text version of boot.scr to /boot/boot.script on rootfs

Yes, that's exactly Guilherme's point: /boot is on rootfs, and we have separate rootfs and bootfs; bootfs is typically the first partition and a vfat which holds MLO, u-boot.bin, uImage, uInitrd and boot.scr. rootfs is extN or btrfs and contains /boot/vmlinuz, /boot/initrd. The bug asks for /boot/boot.txt, but it might or might not make more sense to use a boot.txt file on the bootfs rather than a /boot/boot.txt file on the rootfs.

BTW my preference is to have u-boot read a text file script rather than this weird boot.scr format; a patch was sent upstream 10 days ago to implement this. We need to be careful to not overwrite a custom boot.txt with an automatically generated one though; think of the update-grub mechanism for instance. There's some non-trivial amount of work to support it in the rootfs (flash-kernel etc.). I'm not sure this is a linaro-image-tools thing though; eventually, we'd just call this mechanism from linaro-image-tools rather than generating a boot.scr, but currently we mimic what flash-kernel is doing, and that's where we ought to fix this IMHO.

Revision history for this message
Aprigio Simoes (aprigiosimoes) wrote :

For partitions in install

/boot (primary partition) 200MB with ext2 or ext3

/ -> 40%

swap -> 2 GB

and rest for /home

Changed in linaro-image-tools:
assignee: nobody → Guilherme Salgado (salgado)
status: Triaged → In Progress
Revision history for this message
Loïc Minier (lool) wrote :

Moving the easier path of providing a boot.txt on the boot partition for now; please shoot/open another bug if it's an issue

Changed in linaro-image-tools:
milestone: none → 0.4.4
summary: - please install clear text version of boot.scr to /boot/boot.script on
- rootfs
+ please install clear text version of boot.scr to as boot.txt on bootfs
Changed in flash-kernel (Ubuntu):
status: New → Invalid
Changed in linaro-image-tools:
status: In Progress → Fix Committed
Mattias Backman (mabac)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.