Skip to content

Conversation

Kukunin
Copy link

@Kukunin Kukunin commented May 15, 2021

The device detection is unreliable and often gives inaccurate results that can lead to bricks. This PR adds one step to confirm the detected device + to select the current device manually.

Signed-off-by: Sergiy Kukunin [email protected]

It keeps a list of supported devices and their details.
It tries to detect the current device

Signed-off-by: Sergiy Kukunin <[email protected]>
@Kukunin Kukunin force-pushed the devicemenu branch 3 times, most recently from 6fab6f8 to 4976489 Compare May 15, 2021 14:45
Kukunin added 2 commits May 15, 2021 18:17
Device can be forced by FORCE_DEVICE env variable

Signed-off-by: Sergiy Kukunin <[email protected]>
DEVICETREE=$1/$DEVICE_DEVICETREE.dtb

if [ ! -r "$BOOTLD" ]; then
echo "Bootloader $DEVICE_BOOTLOADER does not exists"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/does not exists/does not exist


[ ! -r $DEVICETREE ] && DEVICETREE=/sys/firmware/fdt
if [ ! -r "$DEVICETREE" ]; then
echo "Device tree $DEVICE_DEVICETREE does not exists"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants