Commit Graph

220 Commits

Author SHA1 Message Date
Jannis
ae3ad1fdee
Apply changes to Espressobin from Issue#2861 (#3498)
* Apply changes to Espressobin from Issue#2861

* Additional config changes

* Add cryptopp to marvell tools

* Remove local DDR topology changes

* Disable ebin MACs in armbianEnv.txt

* Change kernel options for ebin, remove mtdparts

* Add CZ.NICs ebin firmware

* Increase ATF compiler version"

* fixup external toolchains

* add gcc-aarch64-linux-gnu package (#3585)

* correct compiler names for ATF, external toolchain

Co-authored-by: Derek LaHousse <dlahouss@mtu.edu>
Co-authored-by: Derek <ManoftheSea@users.noreply.github.com>
2022-03-28 07:16:22 -04:00
Paolo Sabatino
56f5f94561 rk322x: reboot in maskrom mode when reset button is pressed 2022-03-18 17:26:46 +01:00
Uli Middelberg
4bcad9ebd7
This modification will allow to boot an unmodified cubox-i image on the utilite pro. Beside of this the image can also boot from a different storage media like usb without modification, because most of the distroboot settings are going to be used now. (#3527) 2022-03-12 23:16:04 +01:00
Igor Pecovnik
9479c0473f
Revert "Fix "Meson memory addresses for loading kernel/ramdisk/dtb is not working on 512Mb variants" (#3263)"
This reverts commit eead1f1ec1.

Until https://github.com/armbian/build/pull/3263 is not solved the way we don't break things.
2021-11-21 16:40:39 +01:00
Vyacheslav
eead1f1ec1
Fix "Meson memory addresses for loading kernel/ramdisk/dtb is not working on 512Mb variants" (#3263)
Fixes: [AR-987]  #3171 #3244
2021-11-17 12:34:07 +01:00
Vyacheslav
c528354c42
Revert "Change bootscripts/boot-meson64.cmd memory addresses for loading (#3171)" (#3244)
This reverts commit 300ff669e4.
2021-11-10 19:48:57 +01:00
Vyacheslav
300ff669e4
Change bootscripts/boot-meson64.cmd memory addresses for loading (#3171)
kernel/ramdisk/dtb, so now the script is compatible with boards
with 512Mbytes of memory.

Values:

fdt_addr_r "0x10000000" # 256Mb
load_addr  "0x10100000"  # 256Mb + 1Mb
kernel_addr_r "0x11000000" # 256Mb + 16Mb
ramdisk_addr_r "0x19000000" # 256Mb + 16Mb + 128Mb

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2021-10-26 22:16:16 +02:00
Vyacheslav
3c4b69650e
Add support for JetHome JetHub D1/H1 home automation controllers (#3176)
* JetHome: add basic files for JetHub D1/H1 boards

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add uboot patches

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel patches for JetHub D1/H1 (backport from 5.16-dt kernel)

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add bsp packages for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel options for hardware JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: fix targets-cli-beta.conf for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add axg uboot creation function for JetHub D1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2021-10-19 21:05:36 +02:00
Ricardo Pardini
334d847512
ODROID N2(+): chewitt's uboot + SPI-NOR enable via extra DTBs = SPI Boot to USB, no more hangs. (#3119)
- fix/dup bootscript, since new u-boot fixed n2_plus to n2-plus variant
- g12b: if n2 and edge, enable new u-boot; include non-SD version as SPI binary; write_uboot_platform_mtd
- Kernel DTS patch to add SPI-flash-enabled DTBs (slower eMMC), produces -spi .dtbs for n2 and n2-plus
  - This could also be an overlay, but I dunno overlays.
- SPI+USB3 boot works with "pendrive" storage, untested with cabled/high power USB->SATA or USB->NVMe

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-09-02 20:44:19 +02:00
Igor Pečovnik
d54b2d6a84
Adding OPi Zero2 legacy kernel support (#2620)
* Adding OPi Zero2 legacy kernel support
2021-08-12 19:19:18 +02:00
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
Aristo Chen
95fef5d443
Fix inconsistent indent (#2853) 2021-05-27 20:40:06 +02:00
Lane Jennison
928ed03c5f more hacking 2021-05-16 18:37:13 -04:00
tim
f60920a2b7 Add Avnet MicroZed 2021-04-10 20:39:31 -04:00
Orel
db6a2dd17c
Add overlay_error env on sunxi64 to enable overlays support (#2679)
* Add overley_error env on sunxi64 to enable overlays support
* Add overlay_error env for mvebu
2021-03-02 12:52:14 +01: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
8a6668149d
Update boot-odroid-n2-mainline.ini 2020-10-19 14:16:49 +02:00
iav
599dd2a8cb
Don't delete /boot/armbianEnv.txt file at least for meson64 (#2252)
* Don't delete /boot/armbianEnv.txt file at least for meson64
fix for #2249 ODroid-N2 armbian-config-->hardware menu not work

* Update meson.txt

* Update boot-odroid-n2.ini

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-10-13 20:34:45 +02:00
seth-hunter
36aef09c8c
Revert removal of armbianEnv.txt load on odroid-xu4 (#2226)
Fixes breakage of setting board_name, usbstoragequirks, and extraargs on odroid-xu4 via armbianEnv.txt

Co-authored-by: hunter <hunter@localhost>
2020-09-27 18:49:11 +02:00
Phossule
54172e0593
Update boot-odroid-c4.ini (#2216)
Fix a bug that prevents user from choosing any CPU frequency > 1.8 GHz.  Also increase the offered overclocking range.
2020-09-18 12:24:03 +02:00
Igor Pečovnik
0c617a3c3b
Move Espressobin to 5.8.y (#2187)
- remove fixed MAC from boot script
- remove legacy kernels images from making
2020-09-05 17:16:01 +02:00
Igor Pečovnik
d055f452c4
Extend initird loading address
Just to make sure in case kernel gets larger-
2020-08-29 22:06:25 +02:00
iav
a2cfc820a6
Allow oDroid-N2 to boot if first partition mounted as root by uBoot (#2158) 2020-08-28 18:47:15 +02:00
Igor Pečovnik
6c26c35344
Add initial support for Odroid N2+ (#2130)
* Add initial support for Odroid N2+
* Update C4 config and test booting
* Updates to C4, N2, N2+
- merge C4 and N2 legacy under meson64, same u-boot
- upgrade legacy kernel to meed DTB from mainline
- merge N2 and N2+, add a hack to display + in motd when N2+ is detected
- shortly spin N2 fan at startup
- merged N2 mainline and legacy boot script
- add upstream patches
* One of the regulators were breaking booting of Odroid N2
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
2020-08-08 17:20:00 +02:00
Igor Pečovnik
c0f135a0ef
Init ramdisk is getting larger. Making more room for its deployment (#2108) 2020-07-27 19:38:40 +02:00
Igor Pečovnik
8a5a4212f0
Odroid XU4 Cloudshell improvement
Reverting tiny change
2020-07-17 10:51:00 +02:00
Igor Pečovnik
aef03587a3
Add TFT LCD and FAN control support (#2095) 2020-07-17 10:28:51 +02: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
Igor Pečovnik
e1ecb09833
Initial ROCK Pi E support (as WIP) (#2042)
* WIP: Adding RockpiE config

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Mainline u-boot for ROCK Pi E

* Initial ROCK Pi E device tree in kernel

* Fixed supplies for ROCK Pi E device tree

* Adjusted u-boot load address for rockchip64 boards with 256MB eg. ROCK Pi E

* Blacklisted lima on ROCK Pi E

* Fixed ROCK Pi E patch after merge from master

* Removed mode settings from rk805 regulators

* Fixed issues with offloading for gigabit interface of RockPi E

* Adjusted ROCK Pi E board config

* Added dev branch for ROCK Pi E

* Add build targets

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Exchange legacy to current in ROCK Pi E build targets

Co-authored-by: Piotr Szczepanik <piter75@gmail.com>
2020-06-20 22:39:57 +02:00
Paolo
23604e8a0d
Introducing Rockchip RK322X SoC support (#2032)
* Introducing Rockchip rk322x SoC support

Main features:

- Legacy kernel flavour based upon stable v2.x rk3288 Rockchip branch (https://github.com/rockchip-linux/kernel/tree/stable-4.4-rk3288-linux-v2.x)
- Current kernel flavour based on mainline 5.6.y kernel
- Mainline u-boot (v2020.04)
- Single generic tv box target (rk322x-box) which boots on all the known tv boxes
- Hardware devices (eMMC/NAND, led wiring configuration, SoC variant selection) modulation done by user at runtime via device tree overlays - a script (rk322x-config) is provided for autodetection and simple configuration by inexperienced users;
- Bits added to armbian-hardware-optimization to set affinity for irq handlers
- rk322x-box targets already added to targets.conf for automatic image creation

* Removed disabled patches
* Restored mysteriously removed comment character
2020-06-19 17:27:27 +02:00
David Pottage
5d88511bb3
Add earlycon for early verbose boot messages. (#1871)
* Add earlycon for early verbose boot messages.
* Update boot-cubox.cmd
* Update boot-rockchip.cmd
* Update boot-rockpis.cmd
* Update boot-sunxi.cmd
* Update boot-udoo.cmd

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-06-10 18:31:50 +02:00
Igor Pečovnik
fe36958241
Add Odroid C4 legacy build (#1983) 2020-05-25 19:22:16 +02:00
Igor Pečovnik
f054caca02
Switching Odroid C1 boot partition to FAT (#1964)
* Switching Odroid C1 boot partition to FAT

U-boot FAT driver is very unstable and there is no wish to dig into u-boot. Seems like a sane workaround @plntyk

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Add notes for separate boot partitions

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Typo

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Bugfix: use zImage for converting to uImage since on FAT partitions we use move

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Cleanup C1 boot scripts

We have no plans to ever support legacy kernel again. Removing related things

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* A bit more radical change. Moving meson current to (new) legacy, current to 5.6.y and dev to some development branch / commit.

* Remove unneded patch

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-05-15 21:50:26 +02:00
plntyk
483d7e96a7
Fix odroidc1 (#1932)
* enable and change odroidc1 config
remove EOS
enable current and dev config
meson-current: update config
meson-dev: update config
Signed-off-by: Dirk Neukirchen <plntyk.arm@plntyk.name>

* meson-current meson-dev: reduce Kernel size

with default loading locations in u-boot
the uImage can be too large and will be partly overwritten
with the loaded dtb leading to boot failues due to wrong checksum

Signed-off-by: Dirk Neukirchen <plntyk.arm@plntyk.name>

* odroid-c1: change default loglevel

Signed-off-by: Dirk Neukirchen <plntyk.arm@plntyk.name>

* meson: fix odroidc1 boot and create uImage

without uImage the board will not boot
take the already used hack (?) from
general-kernel-odroidn2-current.patch
since KERNEL_IMAGE_TYPE does not work as expected

Signed-off-by: Dirk Neukirchen <plntyk.arm@plntyk.name>

* Update targets.conf

* Update targets.conf

* Update targets.conf

* Making a bigger diff

* Removing build_minimal

One can choose what to build, while build targets are defined elsewhere

* Governor interactive n/a

* Updating config

Cause of changes in boot.ini we don't need to worry about size. After few tests, no problems sighted.

Tested running Docker.

* Adjust dev config too

Tested.

* Update odroidc1.conf

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-05-03 00:39:52 +02:00
Igor Pečovnik
716bd3b9dc
Reverting mvebu64 to K4.19 (#1926)
It doesn't want to boot on 5.4.y. Adjusting kernel config, fix Docker dependency problem, move few other minor fixes from openwrt and closing https://github.com/armbian/build/issues/1453
2020-04-29 01:04:10 +02:00
Igor Pečovnik
66ce8b2c48
Bugfix for Odroid N2 (#1817)
* Bugfix - Odroid N2 - fix speeds and no crashes during rsync backups.

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-02-28 18:56:04 +01:00
Igor Pecovnik
932c160c36
Revert "Bugfix - Odroid N2 - fix speeds and no crashes during rsync backups."
This reverts commit a32a60527e.
2020-02-28 18:51:09 +01:00
Igor Pecovnik
a32a60527e
Bugfix - Odroid N2 - fix speeds and no crashes during rsync backups.
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-02-28 06:32:22 +01:00
Piotr Szczepanik
b190a29e81 Fixed the boot of 256M version of Rock Pi S (hopefully) (#1762) 2020-01-25 14:30:59 +01: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
Igor Pečovnik
150ac0c2af
Remove K<4, change branches, new features (#1586)
AR-1 - Adding support category for distributions
AR-4 - Remove Allwinner legacy
AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family
AR-9 - Rename sunxi-next to sunxi-legacy
AR-10 - Rename sunxi-dev to sunxi-current
AR-11 - Adding Radxa Rockpi S support
AR-13 - Rename rockchip64-default to rockchip64-legacy
AR-14 - Add rockchip64-current as mainline source
AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y
AR-16 - Rename RK3399 default to legacy
AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y
AR-18 - Add Odroid N2 current mainline
AR-19 - Move Odroid C1 to meson family
AR-20 - Rename mvebu64-default to mvebu64-legacy
AR-21 - Rename mvebu-default to mvebu-legacy
AR-22 - Rename mvebu-next to mvebu-current
AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y
AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6
AR-26 - Adjust motd
AR-27 - Enabling distribution release status
AR-28 - Added new GCC compilers
AR-29 - Implementing Ubuntu Eoan
AR-30 - Add desktop packages per board or family
AR-31 - Remove (Ubuntu/Debian) distribution name from image filename
AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files
AR-33 - Revision numbers for beta builds changed to day_in_the_year
AR-34 - Patches support linked patches
AR-35 - Break meson64 family into gxbb and gxl
AR-36 - Add Nanopineo2 Black
AR-38 - Upgrade option from old branches to new one via armbian-config
AR-41 - Show full timezone info
AR-43 - Merge Odroid N2 to meson64
AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
2019-11-19 23:25:39 +01:00
Aditya Prayoga
6caf9e2dce [mvebu-next] Fix wrong dtb path on bootscript
Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2019-10-15 01:47:33 +07:00
Igor Pecovnik
70e1e5882d
Cubox: bump NEXT kernel to 5.3.y
Adjust configuration, merge with general purpose armv7 Fedora kernel, remove deprecated patch, move coherent_pool and cma to boot script

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-27 19:03:07 +02: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
Igor Pečovnik
405e0781f6
Update boot-odroid-n2.ini
https://forum.odroid.com/viewtopic.php?p=264047
2019-08-29 08:25:56 +02:00