reform-boundary-uboot merge requestshttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests2023-09-13T11:53:12Zhttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/19board/boundary/nitrogen8m_som/nitrogen8m_som.c: set bootargs variable2023-09-13T11:53:12ZJohannes Schauer Marin Rodriguesboard/boundary/nitrogen8m_som/nitrogen8m_som.c: set bootargs variablehttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/18Makefile: Use relative paths for debugging symbols.2023-07-03T11:13:40ZJohannes Schauer Marin RodriguesMakefile: Use relative paths for debugging symbols.The KBUILD_CFLAGS and KBUILD_AFLAGS variables are adjusted to use
-ffile-prefix-map and --debug-prefix-map, respectively, to use
relative paths for occurrences of __FILE__ and debug paths.
This enables reproducible builds regardless of ...The KBUILD_CFLAGS and KBUILD_AFLAGS variables are adjusted to use
-ffile-prefix-map and --debug-prefix-map, respectively, to use
relative paths for occurrences of __FILE__ and debug paths.
This enables reproducible builds regardless of the absolute path to
the build directory:
https://reproducible-builds.org/docs/build-path/
Series-to: u-boot
Signed-off-by: Vagrant Cascadian <vagrant@reproducible-builds.org>https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/17.gitlab-ci.yml: set SOURCE_DATE_EPOCH to the timestamp of the last git commit...2023-07-02T20:22:05ZJohannes Schauer Marin Rodrigues.gitlab-ci.yml: set SOURCE_DATE_EPOCH to the timestamp of the last git commit....gitlab-ci.yml: set SOURCE_DATE_EPOCH to the timestamp of the last git commit for reproducible builds.gitlab-ci.yml: set SOURCE_DATE_EPOCH to the timestamp of the last git commit for reproducible buildshttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/16.gitignore: Add flash.log2023-04-15T13:26:32ZSevan Janiyan.gitignore: Add flash.loghttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/15.gitlab-ci.yml: re-use build.sh to avoid maintaining the list of necessary...2023-07-04T14:32:29ZJohannes Schauer Marin Rodrigues.gitlab-ci.yml: re-use build.sh to avoid maintaining the list of necessary....gitlab-ci.yml: re-use build.sh to avoid maintaining the list of necessary environment variables in two places.gitlab-ci.yml: re-use build.sh to avoid maintaining the list of necessary environment variables in two placeshttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/14board/boundary/nitrogen8m_som/nitrogen8m_som.c: remove printf("set_env_vars()")2023-01-18T19:52:19ZJohannes Schauer Marin Rodriguesboard/boundary/nitrogen8m_som/nitrogen8m_som.c: remove printf("set_env_vars()")https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/13Graphical console and USB keyboard support in MNT Reform u-boot2023-01-18T20:12:42ZminuteGraphical console and USB keyboard support in MNT Reform u-boothttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/12Mainscreen turn on2023-01-18T19:52:13Zcinap_lenrekMainscreen turn onthis gives a graphical console in uboot that can be used with the keyboard. I'm disabling fbpanel command and DCSS drivers in the configuration, and replaces them with a mnt-reform specific lcdif driver (more or less translated from 9fro...this gives a graphical console in uboot that can be used with the keyboard. I'm disabling fbpanel command and DCSS drivers in the configuration, and replaces them with a mnt-reform specific lcdif driver (more or less translated from 9front) in the board support.https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/11use CONFIG_AUTOBOOT_KEYED to only let autoboot be interrupted by the space ch...2023-09-13T11:53:51ZJohannes Schauer Marin Rodriguesuse CONFIG_AUTOBOOT_KEYED to only let autoboot be interrupted by the space characterWhen connecting a FTDI FT232RL usb to ttl uart adapter to the reform
with TX, RX and GND but not connecting that adapter to another machine
via usb, then the adapter will send garbage signals to the reform during
boot. These will interru...When connecting a FTDI FT232RL usb to ttl uart adapter to the reform
with TX, RX and GND but not connecting that adapter to another machine
via usb, then the adapter will send garbage signals to the reform during
boot. These will interrupt autoboot and prevent the reform from booting
until either the RX/TX/GND are disconnected or the adapter is connected
via USB to another machine.
To prevent this from happening, do not interrupt autoboot on any key
press but require the space key to be pressed.https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/10set fdtfile environment variable2022-09-01T18:22:13ZJohannes Schauer Marin Rodriguesset fdtfile environment variable- with our boot.scr this is a no-op because flash-kernel stores a
symlink from /dtb-5.18.0-4-arm64 to /dtbs/${fk_kvers}/${fdtfile}
- with extlinux.conf under debian-installer only sets fdtdir to /dtbs/
and then expects u-boot to r...- with our boot.scr this is a no-op because flash-kernel stores a
symlink from /dtb-5.18.0-4-arm64 to /dtbs/${fk_kvers}/${fdtfile}
- with extlinux.conf under debian-installer only sets fdtdir to /dtbs/
and then expects u-boot to read /dtbs/freescale/imx8mq-mnt-reform2.dtb
- without this patch, u-boot will try reading /dtbs/imx8mq-MNT Reform 2.0.dtb
which doesn't existhttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/9mntreform-config: set CONFIG_ENV_IS_NOWHERE=y2022-08-02T11:51:43ZJohannes Schauer Marin Rodriguesmntreform-config: set CONFIG_ENV_IS_NOWHERE=yThis is to avoid that u-boot reads the environment from emmc. This is
another step to make sure that accidentally running "saveenv" doesn't
mess anything up. It also makes sure that a u-boot image flashed to the
SD-Card really provides a...This is to avoid that u-boot reads the environment from emmc. This is
another step to make sure that accidentally running "saveenv" doesn't
mess anything up. It also makes sure that a u-boot image flashed to the
SD-Card really provides a pristine environment without external
influence.
This still needs to be tested by somebody who messed up their environment on emmc by using `saveenv` in error. I'm too much a coward to try this out myself on my own unit.https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/8disable the saveenv command2022-09-01T18:22:25ZJohannes Schauer Marin Rodriguesdisable the saveenv commandEven when u-boot comes from the SD-Card it loads environment variables
from emmc. This means that if somebody accidentally calls "saveenv" with
the wrong environment variables, then there is no easy way to make
u-boot work again and even...Even when u-boot comes from the SD-Card it loads environment variables
from emmc. This means that if somebody accidentally calls "saveenv" with
the wrong environment variables, then there is no easy way to make
u-boot work again and even a freshly flashed SD-Card will fail to work.
If somebody really needs "saveenv" then they can recompile u-boot with
CONFIG_CMD_SAVEENV enabled.https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/7Update lpddr4_timing and blobs from upstream2022-09-01T18:22:59ZjacquelineUpdate lpddr4_timing and blobs from upstreamThese changes ensure that the reform u-boot fork works fine on nitrogen8m_som production runs / revisions that use a slightly different ram chip.
`lddr4_timing_8mq.c` and `ldddr_timing_ch2.h` both come from here: https://github.com/boun...These changes ensure that the reform u-boot fork works fine on nitrogen8m_som production runs / revisions that use a slightly different ram chip.
`lddr4_timing_8mq.c` and `ldddr_timing_ch2.h` both come from here: https://github.com/boundarydevices/u-boot/blob/boundary-v2020.10/board/boundary/common/
They rely on a couple of new config flags, which I pulled from the result of `$ make nitrogen8m_som_4g_defconfig` (they helpfully seem to be the same flags for 2g and 4g boards though)
This needs testing on the modules that shipped with the reform production run, but I expect it should be fine.https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/6use distro_bootcmd2022-06-10T18:40:44ZJohannes Schauer Marin Rodriguesuse distro_bootcmd- this partially reverts b3a8287b which prevented BOOTENV as set by
config_distro_boot.h being appended to CONFIG_EXTRA_ENV_SETTINGS
- distro_bootcmd can do everything the nested loop can do:
* boot from usb
* arbitrary boo...- this partially reverts b3a8287b which prevented BOOTENV as set by
config_distro_boot.h being appended to CONFIG_EXTRA_ENV_SETTINGS
- distro_bootcmd can do everything the nested loop can do:
* boot from usb
* arbitrary boot order
* set arbitrary boot partition
* search arbitrary list of prefixes
* load a boot.scr
- in addition to that, distro_bootcmd:
* is the standard boot mechanism for distros (see doc/README.distro)
* thus we can replace hard-to-read custom code
* works with extlinux.conf (needed for debian-installer)
Lots of thanks to @vagrantc for helping me with this! :Dhttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/5try booting from USB first2022-04-28T10:48:13ZJohannes Schauer Marin Rodriguestry booting from USB firstIf a USB stick with an OS is present once the reform is booting, the reform should boot from there instead of booting from SD or eMMC. What do you think?If a USB stick with an OS is present once the reform is booting, the reform should boot from there instead of booting from SD or eMMC. What do you think?https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/4unset devnum so that the loop variable takes precedence2022-03-21T20:19:27ZJohannes Schauer Marin Rodriguesunset devnum so that the loop variable takes precedencehttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/3use prefix as loop variable so that it can be reused in boot.scr2022-02-09T15:29:19ZJohannes Schauer Marin Rodriguesuse prefix as loop variable so that it can be reused in boot.scrhttps://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/2boot using boot.scr2022-02-08T12:31:02ZJohannes Schauer Marin Rodriguesboot using boot.scr - enable vga by default
- load boot.scr from sd-card or eMMC, searching either in / or in /boot for it
- add `.gitlab-ci.yml` to build `flash.bin` - enable vga by default
- load boot.scr from sd-card or eMMC, searching either in / or in /boot for it
- add `.gitlab-ci.yml` to build `flash.bin`https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/1output to hdmi by default as well2022-02-08T12:31:02ZJohannes Schauer Marin Rodriguesoutput to hdmi by default as well