-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootloader patches #14992
Bootloader patches #14992
Conversation
- boots from eNVM - uses lim memory for RAM - has console on uart 0 - has procfs enabled - has most of nsh commands enabled Signed-off-by: Jukka Laitinen <[email protected]>
- Change git repository urls to point to our tiiuae repos for nuttx & nuttx apps - Remove most of the the build steps, leave just arm-12 and riscv; arm-12 has a build for stm32f7, and riscv for mpfs Signed-off-by: Jukka Laitinen <[email protected]>
…iver to re-initialize on rx timeout If the interface is UP, and no packets are received in 30s, re-initialize the interface by calling the already implemented mpfs_txtimeout_expiry. This is a temporary workaround for a bug where IF might be UP and working but packets can only be transmitted. Receive side just doesn't work at all. The original bug can be re-produced easily by disconnecting and reconnecting the ethernet cable while the IF is up. Signed-off-by: Jukka Laitinen <[email protected]>
SD-card clock speed is just forced to 50MHz. Note that to be correct, one should first set the SD-card into high-speed mode, but currently NuttX doesn't support this. With our cards, just setting the interface to 50MHz seems to work fine, and it removes the issue with 25MHZ clock causing disturbance on GPS bands. Typically cards which support high-speed mode just work with 50MHz interface clock. This patch should be reverted when the NuttX supports high-speed mode, and we can properly set it. Signed-off-by: Jukka Laitinen <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
…ootloader This removes the need to have all the DDR/clock configuration related "LIBERODEFS" flags defined, when not building a standalone/coldboot configuration All of this code is unused when not building with CONFIG_MPFS_BOOTLOADER Signed-off-by: Jukka Laitinen <[email protected]>
Disable macOS builds for now.
All other commands are disabled in send_recv(). Signed-off-by: Jani Paalijarvi <[email protected]>
…ef and forward declare devif_loopback Signed-off-by: Jukka Laitinen <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
… that takes care of the need for loopback
Enable LINUX_ON_HART4 in rpmsg-ch2 defconfig of ICICLE board. Remove LINUX_ON_HART4 config from rpmsg-ch1 defconfig of ICICLE board.
Fix build warning when CONFIG_STM32F7_AUTONEG is not set Signed-off-by: Jukka Laitinen <[email protected]>
…ved IO area in protected build Signed-off-by: Jukka Laitinen <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
Just a temporary patch, need to implement some kind of scalable solution for this. It might be a good idea to map something else for the user to avoid using ecall to enter the kernel for simple reads ? Also, increase the L3 table size
There is no make step executed for this directory before the Kconfigure, so all Kconfig's just need to be in-tree Signed-off-by: Jukka Laitinen <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
The user i/o area goes over 4MB, so need more page tables
Add FPGA serial support, including console capabilities. FPGA has UARTs from 0-7, so all UARTs starting from 5 depend on FPGA. Signed-off-by: Eero Nurkkala <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
Don't turn off FIC3 clk which would terminate all other peripherals depending on it. Also add a few missing undefs. Signed-off-by: Eero Nurkkala <[email protected]>
…mage Signed-off-by: Jukka Laitinen <[email protected]>
…compile again - Macros CAN_SFF_MASK, CAN_EFF_MASK and CAN_ERR_MASK are defined in nuttx/can.h already -> removed from here - len_to_can_dlc was changed into g_len_to_can_dlc, but not everywhere Signed-off-by: Jukka Laitinen <[email protected]>
…getreg64 prototype change Signed-off-by: Jukka Laitinen <[email protected]>
Instead of verifying MMD indirect access by checking EEE ADVERTISEMENT register has value 0x6 (which may be changed), the verification is done by write and check LED MODE register. 1. Backup current LED_MODE register value 2. Write value Single-LED mode (0x10) to LED_MODE 3. Read LED_MODE register and verify it returns value 0x10 4. Write original (backup) value to LED_MODE
… to uintptr_t The pointer needs to be able to address the whole addressable range. uintptr_t is the correct data type for the register address. Signed-off-by: Jukka Laitinen <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>
Soc reset functionality via pmic Signed-off-by: Jouni Ukkonen <[email protected]>
Provide up_systemreset when psci is disabled Signed-off-by: Jouni Ukkonen <[email protected]>
…by default These flags are needed in order to support sd card in CONFIG_BUILD_KERNEL. Just enable them always. Signed-off-by: Jukka Laitinen <[email protected]>
…NDIRECT by default" This reverts commit f209819.
pollfd revents value is occasionally zeroed by race condition when poll_notify() is called. This results to false timeout return value from poll(). This behavior was found out when application called tcdrain() before calling uart poll(). Signed-off-by: Tero Salminen <[email protected]>
New part support added to driver, pullup/pulldown configuration support Signed-off-by: Jouni Ukkonen <[email protected]>
…events This is an optimization. Signed-off-by: Jukka Laitinen <[email protected]>
imx9_lpi2c_reset didn't quite work. It tried to toggle scl line as GPIO, but the line was not even muxed properly. Instead, set the bus to relaxed mode, and drive address 0 to the bus. This toggles the clock, and also generates start and stop sequences on the bus. "Relaxed mode" is a new feature on the LPI2C block used in imx93. Signed-off-by: Jukka Laitinen <[email protected]>
This CONFIG_MPFS_CLKINIT is set with bootloaders by default. However, this gives an option to have it unset. In some cases, the clocks may be already set so it becomes unnecessary to re-initialize them. Signed-off-by: Eero Nurkkala <[email protected]>
Inter-processor interrupts (IPIs) are not cleared via mie/mip registers but rather, at the MPFS_CLINT_BASE + mhartid * 4 (a word or 4-byte offset for each hart). If there's an IPI waiting, the system will continue to boot altough it's expected to stay at the wfi loop waiting for the IPI. Signed-off-by: Eero Nurkkala <[email protected]>
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
This will update the master with 2 patches that are in with the bootloader only.