Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
2a7fe968
Commit
2a7fe968
authored
Apr 21, 2025
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uboot: do not set console=tty0, when is not set in BASE_BOOTARGS
Most often, the serial console is configured in dtb, so let the output be there. The screen may not work.
parent
13027245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
00-uboot-prepare
features.in/uboot/image-scripts.d/00-uboot-prepare
+1
-5
No files found.
features.in/uboot/image-scripts.d/00-uboot-prepare
View file @
2a7fe968
#!/bin/sh
#!/bin/sh
TTY
=
echo
$GLOBAL_BASE_BOOTARGS
|
grep
console
=
||
TTY
=
'console=tty0'
# installkernel relies on existing extlinux.conf
# installkernel relies on existing extlinux.conf
# with filled in `default' label
# with filled in `default' label
mkdir
-p
/boot/extlinux
mkdir
-p
/boot/extlinux
...
@@ -17,7 +13,7 @@ label linux
...
@@ -17,7 +13,7 @@ label linux
kernel ../vmlinuz
kernel ../vmlinuz
initrd ../initrd.img
initrd ../initrd.img
fdtdir ../dtb
fdtdir ../dtb
append root=LABEL=ROOT ro
$GLOBAL_BASE_BOOTARGS
$GLOBAL_UBOOT_BOOTARGS
$TTY
append root=LABEL=ROOT ro
$GLOBAL_BASE_BOOTARGS
$GLOBAL_UBOOT_BOOTARGS
EOF
EOF
[
-z
"
${
GLOBAL_UBOOT_NOFDTDIR
:-}
"
]
||
sed
-i
-e
'/^[\t]*fdtdir \/boot\/dtb$/d'
/boot/extlinux/extlinux.conf
[
-z
"
${
GLOBAL_UBOOT_NOFDTDIR
:-}
"
]
||
sed
-i
-e
'/^[\t]*fdtdir \/boot\/dtb$/d'
/boot/extlinux/extlinux.conf
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment