Stefan Agner
2e378fd0dd
Align all partitions to 1MiB boundary ( #808 )
...
Aligning partitions (and hence file system structures) to higher level
then 512 byte sectors is common practise and highly recommended for flash
backed block devices. It makes sure that the underlaying flash translation
layer (FTL) does not amplify writes due to missalignment of its erase
block size. Use a 1MiB boundary which is what a modern fdisk is doing.
Before this change:
# fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.35.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/mmcblk0: 14.57 GiB, 15634268160 bytes, 30535680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x48617373
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 16384 65537 49154 24M c W95 FAT32 (LBA)
/dev/mmcblk0p2 65539 1228814 1163276 568M 5 Extended
/dev/mmcblk0p3 1228816 1425425 196610 96M 83 Linux
/dev/mmcblk0p4 1425427 30535679 29110253 13.9G 83 Linux
/dev/mmcblk0p5 65540 114693 49154 24M 83 Linux
/dev/mmcblk0p6 114695 638984 524290 256M 83 Linux
/dev/mmcblk0p7 638986 688139 49154 24M 83 Linux
/dev/mmcblk0p8 688141 1212430 524290 256M 83 Linux
/dev/mmcblk0p9 1212432 1228814 16383 8M 83 Linux
After this change:
# fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.35.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/mmcblk0: 14.57 GiB, 15634268160 bytes, 30535680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x48617373
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 16384 65535 49152 24M c W95 FAT32 (LBA)
/dev/mmcblk0p2 65536 1239039 1173504 573M 5 Extended
/dev/mmcblk0p3 1241088 1437695 196608 96M 83 Linux
/dev/mmcblk0p4 1439744 30535679 29095936 13.9G 83 Linux
/dev/mmcblk0p5 67584 116735 49152 24M 83 Linux
/dev/mmcblk0p6 118784 643071 524288 256M 83 Linux
/dev/mmcblk0p7 645120 694271 49152 24M 83 Linux
/dev/mmcblk0p8 696320 1220607 524288 256M 83 Linux
/dev/mmcblk0p9 1222656 1239039 16384 8M 83 Linux
See also:
https://unix.stackexchange.com/questions/248939/how-to-achieve-optimal-alignment-for-emmc-partition
http://3gfp.com/wp/2014/07/formatting-sd-cards-for-speed-and-lifetime/
2020-09-07 09:07:40 +00:00
Pascal Vizeli
2daa519c25
Update rauc 1.4 to fix mounted boot partition issue ( #809 )
...
* Update rauc 1.4 to fix mounted boot partition issue
* applay update
* fix characters
* fix CI
* Support old format
* fix mcopy prefix
* fix lint
* fix lint
* clean style
* Fix script
* fix syntax
* Support all system
* fix shell
* Fix script
2020-08-06 19:24:01 +00:00
Pascal Vizeli
b3530d1ce1
Allow easy move data partition ( #651 )
...
* Allow easy move data partition
* Cleanup handling systemd
* Improve handling
* fix pipeline
* pipeline
* fix shell handling
* fix scripts
* Add bin folder
* fix lint
* Fix service handling
* Fix loading
* hide output
* Fix handling
2020-05-06 00:00:28 +02:00
Pascal Vizeli
db184bf5d3
Make machine-id persist ( #649 )
...
* Make machine-id persist
* update
* Adjustments
* cleanup
* fix cleanups
* small cleanup
2020-05-04 15:11:43 +02:00
Pascal Vizeli
517abe0ea9
Check keyring of ota update file ( #645 )
2020-04-29 14:49:32 +02:00
Pascal Vizeli
6a49aa1c2b
Create OVA file from release ( #636 )
...
* Create OVA file from release
* Fix name & add boot flag
* revert name
* style cleanup
* Fix script
* Add cleanup
2020-04-26 01:09:51 +02:00
Pascal Vizeli
45c62716cb
New way to install/run supervisor + plugins ( #620 )
...
* Use new layout for CLI/Supervisor
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix install script
* Fix config
* Add docs
* Fix shellcheck
* Fix issue
* rename package
* Fix build
* Fix apparmor
2020-04-21 14:37:25 +02:00
Pascal Vizeli
3281cbd365
Optimize GCC9 & busybox ( #623 )
...
* Optimize GCC9 & busybox
* Move to o2 for stable
* fix shell issue
2020-04-17 14:44:34 +02:00
Pascal Vizeli
5a6678147e
Update buildroot 2020.02.01 ( #622 )
...
* Update buildroot 2020.02.01
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix LN
* Fix wpa
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix lint
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix-network
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix script
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2020-04-16 20:03:01 +02:00
Pascal Vizeli
a592fc9866
Change handling for SPL based images ( #578 )
...
* Change handling for SPL based images
* Fix script
* Fix path for rauc-hook
2020-02-10 14:52:03 +01:00
Pascal Vizeli
d1d3593d65
Fix boot ( #459 )
...
* Fix permission check
* Remove fails on copy
* Disable FB_BCM2708
* Don't touch the memory map from first stage
* bootcode.bin is not needed on rpi4
2019-08-28 10:32:46 +02:00
Pascal Vizeli
41d3f59002
Update Buildroot to 2019.02.3 ( #415 )
...
* Update Buildroot to 2019-02.3
* Fix enter script
* Update ova_defconfig
* Fix network manager
* Remove runc patches
* Use same docker version
* Fix build
* Fix vmtools
* Fix depens
* Fix handling with tempfiles
* Fix permission handling
* Fix cp
* Cleanup
* Fix mounts
2019-06-27 11:58:50 +02:00
Pascal Vizeli
1febb31647
Lint hostapp.sh and robust umount ( #406 )
...
* Lint hostapp.sh and robust umount
* Update hostapp.sh
* Update Dockerfile
* Update Dockerfile
* Update hassos.mk
* Update hostapp.sh
* Update Dockerfile
* Update hassos.mk
* Update hostapp.sh
* Update hdd-image.sh
* Update entry.sh
2019-05-14 23:22:48 +02:00
Pascal Vizeli
ba01ed951b
Fix workflow ( #363 )
...
* Fix workflow
* Update rauc.sh
* Update rootfs-layer.sh
* Delete .travis.yml
2019-02-22 00:51:46 +01:00
Pascal Vizeli
2a2e97ddf9
Build: speedup uboot kernel load ( #338 )
2019-02-03 11:47:45 +01:00
Ryan Bray
75e721e77e
OdroidC2: Updating Kernel ( #277 )
2018-12-06 10:09:16 +01:00
Pascal Vizeli
60c9013535
Travis ( #269 )
...
* Update build-all.sh
* Delete ovf-create.sh
* Update patches.sh
* Update hdd-image.sh
* Create .travis.yml
* Update hdd-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update ota.sh
* Update post-build.sh
* Update post-image.sh
* Update rauc.sh
* Update rootfs-layer.sh
* Update hassos-cli
* Update hassos-supervisor
* Update hassos-config
* Update hassos-apparmor
* Update hassos-expand
* Update hassos-persists-journald
* Update hassos-rate
* Update hassos-hook.sh
* Update hassos-hook.sh
* Rename uboot-boot.sh to uboot-boot.ush
* Rename uboot-boot.sh to uboot-boot.ush
* Update hassos-hook.sh
* Rename uboot-boot.sh to uboot-boot.ush
* Rename uboot-boot.sh to uboot-boot.ush
* Update hassos-hook.sh
* Update odroid_c2_defconfig
* Update rpi0_w_defconfig
* Update rpi2_defconfig
* Update rpi3_64_defconfig
* Update rpi3_defconfig
* Update rpi_defconfig
* Update tinker_defconfig
* Update enter.sh
* Update .travis.yml
2018-11-30 16:22:04 +01:00
Pascal Vizeli
5ff51846e2
Build: Support VDI, VDHX, VMDK ( #259 )
...
* Support VDI, VDHX, VMDK
* Update hassos-hook.sh
* Update hdd-image.sh
2018-11-26 12:14:44 +01:00
Simon Holzmayer
2435ca9065
provide a message when the OTA is skipped ( #255 )
...
Closes #249
2018-11-20 15:57:58 +01:00
Pascal Vizeli
dac76b1632
Allow udev rules & make it persistent ( #210 )
...
* Install default to lib
* Create hmip-rfusb.rules
* Create etc-udev-rules.d.mount
* Update hassos-config
* Update configuration.md
* Update rauc.sh
* Add ln
2018-10-11 20:49:20 +02:00
Pascal Vizeli
61b0b333f0
ota: skeep mbr
2018-08-25 07:52:46 +00:00
Ryan Bray
dc0f6367cb
Odroid-C2: Build Fixes, correct root partition
2018-08-24 22:40:15 -06:00
Pascal Vizeli
ebf84216e9
cleanup
2018-08-24 22:46:03 +00:00
Pascal Vizeli
74ff13e25e
P1
2018-08-24 21:50:29 +00:00
Pascal Vizeli
9b170812d6
Cleanup odroid
2018-08-22 22:15:08 +00:00
Ryan Bray
11088580c5
odroid-c2: Initial Support
...
Working:
* Ethernet
* Resize of Data
* RAUC boot marking/fetching
* CMD Line into HASSOS and Linux
Partially working:
* USB (requires 1+ devices in at boot. Seems to be a kernel/dt issue.)
Untested:
* RAUC Update
* HDMI
Not working:
* Homeassistant
** We see:
hassio > ha info
The HTTP request failed with the error: Get http://hassio/homeassistant/info : dial tcp 172.30.32.2:80: getsockopt: connection refused
2018-08-16 22:24:11 -06:00
Pascal Vizeli
5ad184f943
os: use hyprid for SPL to fix windows
2018-08-11 11:02:15 +00:00
Pascal Vizeli
5f24bd5574
build: optimize vmdk
2018-08-10 15:10:38 +00:00
Pascal Vizeli
4346220e27
os: fix bootstate link
2018-08-08 15:09:08 +00:00
Pascal Vizeli
12b5731e20
os: fix u-boot env size ( #153 )
...
* os: fix u-boot env size
* Delete fw_env.config
2018-08-08 12:48:07 +02:00
Pascal Vizeli
1dc2392f15
Fix some build errors ( #146 )
...
* Fix folder
* Add tinker board to build all
* Fix download URL
* Revert uart patch
* Fix link p2
* Fix cmdline
2018-08-06 00:51:12 +02:00
Pascal Vizeli
fbb45e1544
tinker: Initial support ( #140 )
...
* tinker: initial support
* Fix info
* Fix uboot defconfig
* Split kernel config
* Fix name
* Add post-image
* Init different boot
* Add SPL images
* Dynamic rauc config
* Support SPL for OTA
* Fix expand script style
* Fix SPL
* Bump build u-boot
* Cleanup
* Add cmd for scritps
* Use kernel from armbian
* Fix u-boot
* Add bluetooth support
* Fix bt
* Fix env
* Change uart debug like rpi
* move config
2018-08-03 13:21:55 +02:00
Pascal Vizeli
bf59b7744d
Use dhcp client / avahi after NM ( #75 )
...
* Use dhcp client / avahi after NM
* Store networkmanager
* Add default connection
* cleanup
* cleanup lease
* faster boot
* Cleanup
* Fix permission
2018-07-05 20:00:56 +02:00
Pascal Vizeli
6c58eb1615
Fix /usr/sbin/hassos-cli is not in /etc/shells ( #78 )
...
* Update rootfs-layer.sh
* Update rootfs-layer.sh
* Update rootfs-layer.sh
2018-07-05 13:44:52 +02:00
Pascal Vizeli
3e8499ecbf
Use correct cert ( #35 )
...
* Use correct cert
* Fix boot partition handling
* Cleanup rauc handling
* Make a reboot
* handling
2018-06-24 23:41:04 +02:00
Pascal Vizeli
17ca2ccf0a
Create OTA updater ( #34 )
...
* Create OTA updater
* Create .gitignore
* Update build-all.sh
* Update hdd-image.sh
* Update ota.sh
* Update ota.sh
* Update ota.sh
* Update ota.sh
* Update post-image.sh
* Create name.sh
* Update name.sh
* Update post-build.sh
* Update name.sh
* Update post-image.sh
* Update ota.sh
* Update hdd-image.sh
* Update post-image.sh
* Update name.sh
* Update ota.sh
* Update post-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update post-image.sh
* Update post-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update post-image.sh
* Update post-image.sh
* Update post-image.sh
* Update info
* Update info
* Update info
* Update info
* Update info
* Update info
* Rename buildroot-external/board/raspberrypi/uboot-boot64.sh to buildroot-external/board/raspberrypi/rpi3-64/uboot-boot.sh
* Update rpi3_64_defconfig
* Update hdd-image.sh
* Update ota.sh
* Update post-image.sh
* Update post-image.sh
* Fix building
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix building v2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-24 00:11:54 +02:00
Pascal Vizeli
76a4376a96
Use uboot raw env
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-11 12:46:09 +00:00
Pascal Vizeli
ffbef150ca
Fix partition layout
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-11 11:34:31 +00:00
Pascal Vizeli
a426046bcc
Support dual bootloader ( #27 )
...
* Support dual bootloader
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Make ova running
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix uboot
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Update supervisor
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Support all rpi
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-11 11:34:31 +00:00
Pascal Vizeli
f427eef157
Add fake MBR script
2018-05-20 00:45:10 +02:00
Pascal Vizeli
5d0401a528
Update hdd-image.sh ( #21 )
...
* Update hdd-image.sh
* Update post-image.sh
* Update post-image.sh
2018-05-19 21:26:24 +02:00
Pascal Vizeli
f81e54a124
Update rootfs-layer.sh
2018-05-18 22:45:02 +02:00
Pascal Vizeli
e3d4eb3a3b
Cleanup
2018-05-18 15:15:19 +02:00
Pascal Vizeli
cbcf9fbe3b
Update post-build.sh
2018-05-16 00:04:48 +02:00
Pascal Vizeli
55d1d73cd6
fix bug
2018-05-15 23:56:07 +02:00
Pascal Vizeli
3599b68c97
fix rel
2018-05-15 23:52:31 +02:00
Pascal Vizeli
a676448313
fix path v2
2018-05-15 23:47:19 +02:00
Pascal Vizeli
c9e5eafb17
fix path
2018-05-15 23:45:48 +02:00
Pascal Vizeli
280f1a819c
Setup a PKI for HassOS ( #19 )
...
* Add ca
* Update post-build.sh
* Delete keyring.pem
2018-05-15 19:41:32 +02:00
Pascal Vizeli
3a5d2de705
Rename OS ( #16 )
...
Rename OS
2018-05-14 22:37:39 +02:00