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
1
Merge Requests
1
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
b1c1dd48
Commit
b1c1dd48
authored
May 30, 2019
by
Anton Midyukov
Committed by
Michael Shigorin
Jun 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uboot: initial feature
parent
2194c95f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
0 deletions
+35
-0
README
features.in/uboot/README
+1
-0
config.mk
features.in/uboot/config.mk
+3
-0
00-uboot-prepare
features.in/uboot/image-scripts.d/00-uboot-prepare
+19
-0
90-uboot-config-install
features.in/uboot/image-scripts.d/90-uboot-config-install
+12
-0
No files found.
features.in/uboot/README
0 → 100644
View file @
b1c1dd48
Настраивает систему для использования загрузчика uboot.
features.in/uboot/config.mk
0 → 100644
View file @
b1c1dd48
use/uboot: use/kernel
@$(call add_feature)
@$(call add,THE_LISTS,singleboard-tools)
features.in/uboot/image-scripts.d/00-uboot-prepare
0 → 100755
View file @
b1c1dd48
#!/bin/sh
[
"
$GLOBAL_BASE_BOOTLOADER
"
=
'uboot'
]
||
exit
0
# installkernel relies on existing extlinux.conf
# with filled in `default' label
mkdir
-p
/boot/extlinux
cat
>
/boot/extlinux/extlinux.conf
<<
EOF
menu title ALTLinux Boot Options
default linux
timeout 20
label linux
kernel /boot/vmlinuz
initrd /boot/initrd.img
fdtdir /boot/dtb
append root=LABEL=ROOT ro cma=192M console=tty1
EOF
features.in/uboot/image-scripts.d/90-uboot-config-install
0 → 100755
View file @
b1c1dd48
#!/bin/sh -x
kver
=
"
$(
rpm
-qa
'kernel-image*'
\
--qf
'%{installtime} %{version}-%{name}-%{release}\n'
\
|
sort
-n
\
|
cut
-f
2
-d
' '
\
|
sed
's/kernel-image-//'
)
"
[
-n
"
$kver
"
]
||
{
echo
"** unable to deduce kernel version"
>
&2
;
exit
1
;
}
/sbin/installkernel
--uboot
--keep-initrd
"
$kver
"
printf
'LABEL=ROOT\t/\text4\tdefaults\t1 1\n'
>>
/etc/fstab
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