Commit graph

56 commits

Author SHA1 Message Date
Celeste Liu
542aae6de5
mkimg: unset $PYTHONSAFEPATH because it break OpenSBI build
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-12-08 21:36:57 +08:00
Celeste Liu
fabb0a7fc3
mkimg: rename to $uuid because it's acutally a UUID
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-12-08 21:09:55 +08:00
Felix Yan
1612c74904
Update uboot and opensbi to latest versions (#17) 2023-10-03 11:38:30 +08:00
Celeste Liu
7a2b4531ed
feat(mkimg): add other filesystem support
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 19:36:50 +08:00
Celeste Liu
a5f037a9b3
refactor(mkimg): remove useless parameters
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 19:08:55 +08:00
Celeste Liu
382755139f
feat(mkimg): enable btrfs support for uboot
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 19:06:29 +08:00
Celeste Liu
e47bd270af
refactor(mkimg): use global variable to specify firmware version
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 18:44:38 +08:00
Celeste Liu
e1e85f4250
fix(mkimg): use blobless clone instead of shadow clone
To make sure updating existed repo work

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 18:41:45 +08:00
Celeste Liu
fc6ab3400c
refactor(mkimg): reduce commands when update repo
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 18:40:41 +08:00
Celeste Liu
cab9b1a1ea
fix(mkimg): wont update repo when directory exists
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-07-10 18:34:37 +08:00
LekKit
fa2c3f811e
mkimg: support raw images and misc improvements (#16)
- build without firmware
- add non-fallback entry
- use UUID instead of part name
2023-07-07 18:38:09 +08:00
Eric Long
a7f841ab5a
fix(mkrootfs): change pacman-extra-riscv64.conf path (#15) 2023-05-27 22:39:49 +08:00
Felix Yan
31fde4cce7
mkimg: update u-boot to v2023.04 (#14)
Fixes boot issue here (stucking at "Starting kernel...").
2023-04-19 15:50:17 +08:00
Job Noorman
1b97fa1c83
chore: Add missing devtools-riscv64 prerequisite to README (#12)
Co-authored-by: Job Noorman <jnoorman@igalia.com>
2023-02-15 20:05:50 +08:00
XieJiSS
c81a4c8590
fix(mkrootfs): fix typo (#11) 2023-02-05 12:12:11 +08:00
Celeste Liu
69aa024f38
fix(mkrootfs): use Arch geo mirror as default
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2023-01-24 01:06:32 +08:00
XieJiSS
4e2351a2cb
fix(mkimg): early quit if nbd module is missing (#10) 2023-01-23 18:07:53 +08:00
Felix Yan
9fc89f348e
feat: Enable networking and use systemd-nspawn instead of arch-chroot (#9)
- Enable networking by default as it's often useful.
- Use systemd-nspawn instead of arch-chroot because the latter is known
  to be fragile and often results in mounts not being cleaned up
  correctly and broken images.
2022-12-01 22:06:37 +08:00
Celeste Liu
850d7c93e3
refactor(mkimg): remove hack for systemd-firstboot since 252 has released
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2022-11-24 13:21:47 +08:00
Celeste Liu
e5043640bd
fix(mkimg): clean up before build
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2022-11-24 13:19:23 +08:00
Celeste Liu
50cc973369
maintain: update u-boot to v2022.10 & opensbi to v1.1
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
2022-11-01 18:35:09 +08:00
Avimitin Lu
5d7dbdbe37
docs(readme): add README.md file (#8) 2022-09-15 14:45:23 +08:00
Avimitin Lu
00857a7aaa
feat(startqemu): add argument parser for specifying different qcow image (#7) 2022-09-15 13:24:12 +08:00
Avimitin Lu
218dcea615
fix(mkrootfs&mkimg): fix argument parser (#6) 2022-09-13 12:05:55 +08:00
Coelacanthus
ec4bad56d6
refactor: add arguments to contrl script behaivor, rename to non-suffix
Signed-off-by: Coelacanthus <CoelacanthusHex@gmail.com>
2022-09-11 23:30:29 +08:00
Coelacanthus
55d5af7f33
refactor(mkrootfs): use sha512crypt instead of crypt(old)
I misunderstood the meaning of Perl's crypt function,
I thought the second argument was a hash method, but
it was actually salt. using crypt gives the result of
a traditional Unix password hash function, which is
very insecure. Arch Linux currently uses sha512crypt
by default, and we use it as well.

Signed-off-by: Coelacanthus <CoelacanthusHex@gmail.com>
2022-08-30 18:09:12 +08:00
Coelacanthus
b4bc366b43
fix(mkimg): fix git environment clean
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-08-29 18:54:39 +08:00
Coelacanthus
d47be0c0e8
fix(mkimg/uboot): fix virtio_pci_map_capability
Error is:
Unhandled exception: Load access fault
EPC: 00000000bff7c46e RA: 00000000bff7c46c TVAL: 0000000040200014
EPC: 000000008002446e RA: 000000008002446c reloc adjusted

Code: 8082 1141 e022 e406 842e 40ef dc5f 611c (c783 0147)

Found in https://lists.denx.de/pipermail/u-boot/2022-August/492779.html
Fixed in https://patchwork.ozlabs.org/project/uboot/patch/20220828235315.332024-1-wxjstz@126.com/

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-08-29 18:50:37 +08:00
Felix Yan
a98ef30437
refactor(mkimg): drop dracut, use mkinitcpio (#5) 2022-08-25 12:30:52 +08:00
Felix Yan
1dd75aa50e
refractor(mkimg): using fallback initramfs directly (#4) 2022-08-03 12:10:27 +08:00
Coelacanthus
0f2e94e4b6
fix(mkimg): bash: local: can only be used in a function
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-29 19:08:10 +08:00
Coelacanthus
5a7a0c6c96
feat(mkimg): check before git and update git every time
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-28 21:30:56 +08:00
Coelacanthus
e0ff416204
fix(mkimg): fix re-generate initramfs
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-28 17:11:13 +08:00
Coelacanthus
6791623ab7
fix(mkimg): rollback opensbi
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-28 16:23:15 +08:00
Coelacanthus
96621efd80
refactor(mkimg): update uboot and opensbi, remove unneeded patch
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-28 15:28:51 +08:00
Felix Yan
fa97890ebe
fix(mkimg): don't do useless chroot
fix #3
2022-07-28 15:17:46 +08:00
Coelacanthus
11246769a0
fix(mkimg): systemd-firstboot conf needn't use chroot
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-28 15:07:13 +08:00
Coelacanthus
75c5f99571
fix(mkimg): fix extlinux conf install path
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-28 15:03:34 +08:00
Felix Yan
c878d1729f Add missing $ in usermod command 2022-07-28 01:21:00 +08:00
Coelacanthus
a9b5239528
fix(mkimg,mkrootfs): clean up need root
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 22:31:55 +08:00
Coelacanthus
41765df789
fix(mkimg): chown to root for root directory
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 22:29:37 +08:00
Coelacanthus
8446758c6c
feat(mkrootfs): clean up files when completed
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 22:27:50 +08:00
Coelacanthus
8855d84c83
fix(mkrootfs): chown to root for root directory
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 22:26:02 +08:00
Coelacanthus
de725f6b8e
fix(mkrootfs): usermod ONLY support abs path
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 22:05:05 +08:00
Coelacanthus
eb221c9a84
fix(mkrootfs): usermod require encrypted password
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 22:05:04 +08:00
Coelacanthus
7668eca128
fix(mkimg): remove useless chroot for heredoc
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 21:26:21 +08:00
Coelacanthus
9b25155ec8
fix(mkimg): use pacman in chroot and Syu when install packages
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 20:47:18 +08:00
Coelacanthus
8e9166c0f0
fix(mkimg): lost extract rootfs step
Must run mkrootfs.sh before run mkimg.sh

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 19:57:43 +08:00
Coelacanthus
40fc627098
chore: add LICENSE file and copyright comment
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-07-27 15:58:27 +08:00
Coelacanthus
8a355c5a35
feat: add startqemu script to test qemu img
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-05-29 00:33:01 +08:00