Repository navigation
DietPi-Prep | Fix installation for XU3/4/HC1 + some adjustments - #1362
Conversation
DietPi-Prep + Adjust conf.d file naming to 99-dietpi-*, so we can easily find/reset/remove those in the future. + Make wget prefer IPv4 failure prove. Maybe we can build a script like this to savely adjust values inside config files, including to option to preserve or overwrite existing values, something like: G_EDIT_CONF -o "prefer-family =" "prefer-family = IPv4" "/etc/wgetrc" + Fix https://github.com/Fourdee/DietPi/issues/1285#issuecomment-354602594 by installing kernel/firmware/bootloader packages directly. This allows autoremove of older/different packages. + Some typos...
hmm... don't know, if I have do it correct: |
|
@k-plan As just the preparation script is modified by this PR, you don't need to adjust the GIT_BRANCH. |
|
|
||
| #aPACKAGES_REQUIRED_INSTALL+=('linux-image-4.9-armhf-odroid-xu3') | ||
| aPACKAGES_REQUIRED_INSTALL+=('linux-image-armhf-odroid-xu3') | ||
| G_AGI linux-image-4.9-armhf-odroid-xu3 |
There was a problem hiding this comment.
4.9 testing kernel, is no longer supported via HK or developed, they have switched to 4.14: http://com.odroid.com/sigong/blog/blog_list.php?bid=192
Meveric will provide packages of 4.14 when stable enough for end users. We can then change as needed in future.
Please revert kernel to 3.x (stable, official) linux-image-armhf-odroid-xu3. Users can install 4.9 testing kernel, if needed manually afterwards.
There was a problem hiding this comment.
Please revert kernel to 3.x (stable, official)
I think, this was my fault. Sorry.
Yes I have read the HK kernel story. https://github.com/Fourdee/DietPi/issues/1285#issuecomment-354602923
Hmmm ... but Debian Stretch with Kernel 3.x ?
kernel : Linux 4.9
Have I totally missed something?
If I remember correct, HK kernel 4.9 was their previous testing/stable?
This LTS(Long Term Support) kernel 4.9 will be actively updated until early 2019.
What a bullsh....
There was a problem hiding this comment.
@k-plan @Fourdee
Yes, still using 3.x also sounds unreasonable to me. If 4.9 is not supported any more, than 3.x won't be either (for Stretch+), even that Meveric still use this as from naming kinda default.
Meveric does already have 4.14 in it's repo, constantly updating (at least there are already several minor versions), so then I would directly go to 4.14 instead of shipping 3.X and overwriting users/base images newer kernel with this.
There was a problem hiding this comment.
Huh ... as I said before Linux Kernel 4.14 Debugging Party
I really don't know ... but it will be your arbitration.
There was a problem hiding this comment.
nothing to do with HW_MODEL == 11
but on the other hand I can't see any support from HK for newer kernels then 3.x for
Odroid C1/C1+/C0 or C2
can be a argument to stay on 3.x for Odroid XU4/XU3/HC1/MC1 as well.
(and for sure the better mali hardware ffmpeg/kodi/xbmc support as well)
There was a problem hiding this comment.
Hmm as for Odroid, the debugging party is over since October, but some people seem to face issues with USB hard drives and UAS enabled. I am not really sure, that UAS is, seems to be a new (faster) USB transfer method or something...
There was a problem hiding this comment.
UAS => come into focus with Odroid HC1 on board SATA Bridge:
JMicron JMS578 USB 3.0 to SATA Bridge with UAS capability to archive near ~300MB/sec transter speed
The reason, why I started to play around with this: https://github.com/Fourdee/DietPi/issues/1268#issuecomment-354499449
What does it profit, if we can't get the speed over the network? For me personally - nothing.
There was a problem hiding this comment.
We could also make a separation between the devices, but as at least Odroid claims all to be compatible vice versa...
For now I will revert to 3.x but include a check to keep newer kernel, if installed, as kernel downgrade is also risky/unsupported and this enables us to also test newer kernels by choosing the related base image.
There was a problem hiding this comment.
Tested on hardware Odroid HC1 (XU4) with based on (NR_4.x)_DietPi_v158_OdroidXU4-armv7-(Jessie).img and it works! 😃
For now I will revert to 3.x but ...
Good idea for now, because the device will not start up after PREP.
- easy to fix, because
boot_xu4.inifrom DietPi repro has wrong
fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb
Must havefatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtbfor kernel 4.x
But messing around with such a lot of installation, I know this immediately.
Really nice work 👍
Will test it later with Meveric Jessie (default Kernel 3.x) image
PS: - what not looking "so nice" is autogenerted fstabat the moment.
root@DietPi:~# cat /etc/fstab
#Samba Client------------------------------------------------------
#/mnt/samba . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
#FTP Client Mount--------------------------------------------------
#/mnt/ftp_client . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
#NFS Client Mount--------------------------------------------------
#/mnt/nfs_client . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
#TMPFS / MISC ------------------------------------------------------
proc /proc proc defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /var/log tmpfs defaults,size=20m,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /DietPi tmpfs defaults,size=10m,noatime,nodev,nosuid,mode=1777 0 0
#Internal Drives---------------------------------------------------
UUID=5886-8548 /boot auto defaults,noatime,nofail,discard,x-systemd.automount 0 0
UUID=a4f12232-1670-43f4-8eca-49bfbe4d01ee / auto defaults,noatime,nofail,discard 0 0
But it's only cosmetic. Before boot device mmc/eMMC was in first line. But anyway, yes their are #Internal Drives
There was a problem hiding this comment.
Done. This will basically keep the currently installed kernel, as on working devices there should always be one installed.
So if we have a C1/C2 etc. image with preinstalled 3.X kernel, it will stay. If they run a current XUX/HC1 image with 4.14, it will stay as well.
This is maybe not the best solution, as we loose control about which kernel people use, thus which kernel related errors they might face, but it prevents downgrade at least, which might be an error source as well.
|
Works now, tested with Jessie and Stretch on VirtualBox via mini.iso images. Buster is not possible at the moment. Kernel on repo was updated to 4.14 but the installer wants to see 4.12. Need to wait for new buster mini.iso. |
Sorry. In 1324 lines of bash code I never ever will find the fault. 😢 |
|
@k-plan |
|
Online bash error checker: Just dont run |
| aPACKAGES_REQUIRED_INSTALL+=('linux-image-armhf-odroid-xu3') | ||
| #G_AGI linux-image-4.9-armhf-odroid-xu3 | ||
| G_AGI $(dpkg --get-selections | grep "linux-image*" | awk '{print $1}') | ||
| [ ! -n "$(dpkg --get-selections | grep "linux-image*") ] && G_AGI linux-image-armhf-odroid-xu3 |
There was a problem hiding this comment.
Missing closing ":
Try string quote the whole command
"$(dpkg --get-selections | grep linux-image*)"
|
@Fourdee Nice checker actually, gives also interesting hints within the whole script. Could be worth to check and optimize all scripts with it, especially dietpi-software 😆. |
|
Retested, from step seven on some errors appear that we should mute: |
Is en_GB.UTF-8 set after this? If so we probably dont need the command
🈯️ fixed in: Fourdee@db7d0cf
Due to
|
|
@Fourdee Could switch to bulletproof sed: |
+ Always generate default /etc/dphys-swapfile: https://github.com/Fourdee/DietPi/pull/1362#issuecomment-354759731
Default conf now generated inside script: Fourdee@db7d0cf
|
@another issue, I already recognized on earlier tries and forgot to mention: Somehow the G_HW_ARCH recognition doesn't work sometimes: At the beginning it is clearly selected. I just checked: The sourcing dietpi-globals at the beginning of script leads to a value of "0" again. After the whole script, value is correctly set. €: About locales: To make it easy I changed it now to: This will also add the commented list to €€: And finally fixed the |
👍
Lol, @k-plan had bad experience lately ❤️ 😄. Yep, lets fix it 😃 |
|
Legend, great work 👍 |

DietPi-Prep