#12672 closed defect (fixed)

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
Blocked By: Blocking:
Deployments affected: Action Needed: add to build
Verified: no

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 (4)

comment:1 follow-up: Changed 19 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.

comment:2 in reply to: ↑ 1 Changed 19 months ago by Quozl

  • Action Needed 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# 

comment:3 Changed 19 months ago by Quozl

  • Action Needed changed from package to add to build
  • Cc dsd added

Is in Q4D30.

comment:4 Changed 18 months ago by dsd

  • Resolution set to fixed
  • Status changed from new to closed

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.