Ticket #12672 (closed defect: fixed)

Opened 15 months ago

Last modified 14 months ago

chosen/bootpath no longer complete

Reported by: dsd Owned by: Quozl
Priority: high Milestone: 13.2.0
Component: ofw - open firmware Version: not specified
Keywords: Cc: dsd
Action Needed: add to build Verified: no
Deployments affected: Blocked By:
Blocking:

Description

The activation initramfs uses the data in /proc/device-tree/chosen/bootpath to determine whether to activate or not (e.g. was runos or actos used?).

In Q4D29 the filename of the boot image is not shown here. This will break activation.

Change History

follow-up: ↓ 2   Changed 15 months ago by Quozl

When did the initramfs begin using the file name?

Can you enable flattened device tree support? If so, change the ramdisk so that it does not contain the pattern "$bootpath in\n\t\t/sd@", which will cause the firmware to place this in bootpath:

/sd/sdhci@d4281000/disk:\boot\runos2.zip//ext2-file-system:\boot\runos2.zip

You can simulate this with manual booting:

ok patch exit /ramdisk fixup-bootpath
ok boot

On 13.1.0 this causes a panic because the root filesystem is not found.

svn 3350 added support for older operating system releases which inspects the uncompressed ramdisk.

The substitution done in fixup-bootpath loses the tail of the string. There might be a way to avoid that.

in reply to: ↑ 1   Changed 15 months ago by Quozl

  • next_action changed from never set to package

Replying to Quozl:

The substitution done in fixup-bootpath loses the tail of the string. There might be a way to avoid that.

There was a way. Fixed in svn 3656 and available in q4d29ja.rom.

The /proc/device-tree/chosen/ramdisk data might have been used instead, as it turned out.

Output from console after boot:

bash-4.2# cat /proc/device-tree/chosen/bootpath ; echo
/sd@d4280000/disk@3:\boot\runos2.zip//ext2-file-system:\boot\runos2.zip
bash-4.2# cat /proc/device-tree/chosen/ramdisk ; echo
/sd/sdhci@d4281000/disk:\boot\runrd2.zip//ext2-file-system:\boot\runrd2.zip
bash-4.2# 

  Changed 14 months ago by Quozl

  • cc dsd added
  • next_action changed from package to add to build

Is in Q4D30.

  Changed 14 months ago by dsd

  • status changed from new to closed
  • resolution set to fixed

Tested 13.2.0 build 7 on XO-1.75, bootpath looks sane again and the initramfs works as expected.

Note: See TracTickets for help on using tickets.