Ability to load linux kernel on rock2 RK3288
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/4] Ability to load linux kernel on rock2 RK3288
Hi Standy,
Quoted 20 lines · Sandy Patterson
I did a little more on this, and talked to someone else here. It seems that my problem with loading the kernel including these patches is specific to our kernel and after applying a local patch we have, it appears to load fine.
So this patchset gets me back to the same functionality in v2016.03.
We're left with the puzzle of what's wrong on the RK3288 regarding caching and memory.
Sandy Patterson
On Mon, Jul 11, 2016 at 1:38 PM, Sandy Patterson
<apatterson at sightlogix.com <mailto:[email protected]>> wrote:I wasn't able to load the linux kernel using a Rock2 board using the latest master branch. The board hangs after it has handed executing over to the kernel. I found that the latest release that worked was v2016.03.
Quoted 8 lines
I did some searching and I suspect the problem may be cache related.
This patchset allows the kernel to start by reverting two problem commits and disabling
EFI_LOADERwhich I suspect rubs the caching the wrong way. We also found that the 512M limit for fdt and initrd is now 256M.
I'm not sure why this is.
I just tried to boot linux kernel on my rk3288 board with the latest u-boot. Everything looks sane.
board: rk3288-fennec
u-boot: branch u-boot-rockchip/master, also enable CONFIG_EFI_LOADER boot device: eMMC
bootcmd: mmc dev 1; mmc read 0x2000000 0x14000 0x10000; bootz 0x2000000 (custom partitions layout )
Could try again, let me know if you still have any problem.
Quoted 39 lines
This still doesn't work 100%. I think it's not initializing the SD card
volages correctly, but at least the Kernel is loading.I also am not sure changing the caching for all armv7 is the right answer. I wasn't too sure about the revert. I am not very familiar with
this low level stuff.Sandy Patterson
Sandy Patterson (4):
Revert "arm: Replace
v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL)
with asm code"
Revert "arm: Replacev7_maint_dcache_all(ARMV7_DCACHE_INVAL_ALL)
with
asm code"
DisableCONFIG_EFI_LOADERfor rock2.
RK3288 needs fdt and initrd below 256M now.
arch/arm/cpu/armv7/Makefile| 2 +-
arch/arm/cpu/armv7/cache_v7.c| 135
++++++++++++++++++++++-
arch/arm/cpu/armv7/cache_v7_asm.S| 154
---------------------------
arch/arm/mach-uniphier/arm32/lowlevel_init.S| 67 +++++++++++-
configs/rock2_defconfig | 1 +
include/configs/rk3288_common.h| 6 +-
6 files changed, 201 insertions(+), 164 deletions(-) delete mode 100644arch/arm/cpu/armv7/cache_v7_asm.S--
1.9.1