18 Commits

Author SHA1 Message Date
Ricardo Pardini
78a320b1fd
edge: ODROID N2/N2+ mainline U-boot; keep odroid-2015 u-boot for legacy and current
- Armbian already had all the FIP-magic needed, just use it.
- Introduce USE_ODROID_UBOOT with a list of branches that use Odroid's 2015 u-boot
  - this is mostly in preparation for non-Odroid G12B/meson64 boards (Khadas VIM3...)
  - In case $BRANCH is listed in USE_ODROID_UBOOT:
    - use BOOTCONFIG_ODROID and BOOTSCRIPT_ODROID from board.conf
    - build 2015 u-boot just like before
- Small hack into boot-meson64.cmd to handle u-boot vs kernel: n2_plus vs n2-plus DTB/FDT naming mismatch
 - overrides the default $fdtfile based on $variant
 - armbianEnv still has final say if $fdtfile is set there (it isn't for n2/n2plus)
- Extra:
 - remove unused n2-mainline bootscript (maybe from a previous try?)
 - comments about FIP trees being identical across N2/N2Plus and C4/HC4 families so no future time wastage
 - only set CPUMIN/CPUMAX/GOVERNOR in meson64_common.inc if not already set by the board.conf
 - Add some ${bootargs} debugging to mainline/default boot-meson64.cmd

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-07-07 19:55:58 +02:00
Ricardo Pardini
fb69b203d6
Non c4 meson64 fixes (#2967)
* Fix: use $fdtfile for legacy boot DTB, not hardcoded "amlogic/meson64_odroidc4.dtb"

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* drop unused c4 bootscript

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-07-04 22:44:18 +02:00
Aristo Chen
4f3b2ab999
Remove extra tab (#2855) 2021-05-28 19:40:26 +02:00
Igor Pečovnik
922f3b4f38
Add libata.force=noncq to the meson64 kernel command line (#2602) 2021-02-02 16:50:20 +01:00
Igor Pecovnik
e2104390d9 Fix Odroid C4 / HC4 problem
Need to check other meson64 family
2021-01-06 23:39:59 +01:00
Igor Pečovnik
1d33d7d0cc
Remove doubled parameter 2021-01-06 09:03:00 +01:00
Igor Pečovnik
e833e2589c
Move Odroid C4 from legacy u-boot toward mainline (#2350)
- move Odroid C4 from legacy u-boot toward mainline
- get rid of dirty legacy u-boot code
- get rid of FAT boot partition
- briefly tested
- both kernels can operate with one standard boot script
- add upstream patch and adjust config
- fix console
- don't clock C4 too high by default
2020-11-22 13:47:41 +01:00
Igor Pečovnik
7d758026b5
Enable kernel boot splash, env and bootscript files cleanup, upstream patches (#2065)
* Initial commit for kernel boot splash
* Add startup files to disable bootlog when system is up / down
* Update logo, remove deprecated one
* Introduce new u-boot variable bootlogo
* Adjust kernel config
* Make logo possible on Odroid XU4
- add legacy and current upstream patches
- delete xu4 environment since its not used
* Cleanup C2,C4, both tested, logo works on mainline,
- adding legacy upstream patches for c4
* Enable bootlogo by default on Odroid N2
* Enable logo on RK3399 desktop images
* Cleanup the rest of the environment files
* Add initrd hook that copy splash file to initrd.
* Missing logo bits for one boot scripts
* Enable boot logo on Pinebook A64
* Enable bootlogo on Teres
* Update config
2020-06-27 19:14:38 +02:00
zhangn1985
4ce8c03b5b bootscript: remove panic=10 from bootargs (#1670)
when there are some reasons which board failed to boot, eg rootfs crashes.
/init will fail to panic().

panic()
{
	local console rest IFS

	if command -v chvt >/dev/null 2>&1; then
		chvt 1
	fi

	echo "$@"
	# Disallow console access
	if [ -n "${panic?}" ]; then
		echo "Rebooting automatically due to panic= boot argument"
		sleep "${panic}"
		reboot
		exit  # in case reboot fails, force kernel panic
	fi
...
}

when panic is set, there is no chance to fail into a shell, to debug what happens.
and device just keep reboot.

remove panic from bootargs to make it possible for users to find out why their boards fail to boot.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-12-16 12:22:00 +01:00
zhangn1985
f68d51b273 use kernel command line instead of a patch (#1572)
atomic_pool_size can be controlled by kernel cmdline,
	coherent_pool=nn[KMG]   [ARM,KNL]
then use this parameter to replace the patch.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-09-22 18:10:06 +02:00
JMCC
01571c0a4c
Lower load_addr for boards with only 1GB RAM
Setting load_addr to "0x44000000" (1088 MiB) is too high for boards with only 1GB of RAM, and causes boot failure. I tried some lower values, until I found "0x34000000" (832 MiB) to work. I made quite big steps, so we probably could find something slightly higher to work too, but I see no reason why we would need to do it.

Reference: https://forum.armbian.com/topic/8829-le-potato-c2-k2-419-lts-testing-thread/?do=findComment&comment=69850
2019-01-16 02:47:00 +01:00
Igor Pecovnik
ed578975ae [ meson64 ] change default console to HDMI, getty enabling bugfix 2018-12-11 20:32:52 +01:00
Thomas McKahan
ad8c89db50 [Meson64] U-boot bump to 2018.11, move C2 to Meson64 U-boot 2018-11-20 23:49:53 -05:00
Thomas McKahan
cfd8a89568 Bootscript: Meson64 update eMMC
Uses C2 boot script on Le Potato/K2 to support eMMC booting.
2018-11-15 01:38:08 -05:00
Igor Pecovnik
fda2c1c424 Meson64 boot script bugfix and 1st run setting MAC via Network manager for boards where is random 2018-09-02 14:04:16 +02:00
Igor Pečovnik
fcb85f1767 Major Amlogic RFC and cleanup
- merging C2 and Meson family on the source level, C2 is still making own kernels, but sources, patches and configs are the same
- merged boot scripts for meson family. support for non existing legacy kernel was dropped from boot scripts, added UUID support, armbianEnv.txt
- Meson default remain on 4.14.y, NEXT moved to 4.17.y and DEV remains on master
- remove deprecated patches, remove wrong permissions in patches
- tested on C2, K2 and Le Potate. USB troubles are still present and common, while K2 and Lepotato might have boot/reboot troubles on 4.16+
- boards configuration cleanup
- moving K2 to the supported list. It's the same level of support as Le Potato
2018-06-28 08:27:08 +00:00
zador-blood-stained
9251512dc4 Small refactoring 2017-09-01 16:19:10 +03:00
Igor Pecovnik
3cb25e884f Nanopi K2 boots manually from u-boot (no support for loading boot script at the moment), works somehow, but stuck crashes on reboot, ... 2017-07-02 20:49:33 +02:00