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
Anton Palgunov
mkimage-profiles
Commits
dc2101a0
You need to sign in or sign up before continuing.
Commit
dc2101a0
authored
Jun 13, 2019
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uboot: setup serial tty for qemu
parent
482e11ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
config.mk
features.in/uboot/config.mk
+11
-1
00-uboot-prepare
features.in/uboot/image-scripts.d/00-uboot-prepare
+7
-1
No files found.
features.in/uboot/config.mk
View file @
dc2101a0
use/uboot: use/kernel
ifeq (,$(filter-out qcow2 qcow2c,$(IMAGE_TYPE)))
ifeq (,$(filter-out aarch64 armh,$(ARCH)))
UBOOT_TTY := use/tty/AMA0
else
UBOOT_TTY := /use/tty/S0
endif
endif
use/uboot: use/kernel/initrd-setup $(UBOOT_TTY)
@$(call add_feature)
@$(call add_feature)
@$(call add,THE_LISTS,singleboard-tools)
@$(call add,THE_LISTS,singleboard-tools)
@$(call try,TTY_DEV,tty1)
@$(call xport,TTY_DEV)
features.in/uboot/image-scripts.d/00-uboot-prepare
View file @
dc2101a0
...
@@ -2,6 +2,12 @@
...
@@ -2,6 +2,12 @@
[
"
$GLOBAL_BASE_BOOTLOADER
"
=
'uboot'
]
||
exit
0
[
"
$GLOBAL_BASE_BOOTLOADER
"
=
'uboot'
]
||
exit
0
if
[
-n
"
$GLOBAL_TTY_RATE
"
]
;
then
TTY
=
"
$GLOBAL_TTY_DEV
"
,
"
$GLOBAL_TTY_RATE
"
else
TTY
=
"
$GLOBAL_TTY_DEV
"
fi
# 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
...
@@ -15,5 +21,5 @@ label linux
...
@@ -15,5 +21,5 @@ label linux
kernel /boot/vmlinuz
kernel /boot/vmlinuz
initrd /boot/initrd.img
initrd /boot/initrd.img
fdtdir /boot/dtb
fdtdir /boot/dtb
append root=LABEL=ROOT ro cma=192M console=
tty1
append root=LABEL=ROOT ro cma=192M console=
$TTY
EOF
EOF
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