openbouffalo / buildroot_bouffalo

Linux Image for the BL808 CPU by Bouffalo Lab
128 stars 34 forks source link

Linux can't start when I flash E907 application which was biult with bouffalo_sdk #86

Open tanklist opened 6 months ago

tanklist commented 6 months ago

My goal is to develop application for E907 core which will work together with Linux on C906 core. I use your Linux and it work well with E907 firmare which is included in release. But I need my own E907 application and I use bouffalo_sdk for that. After build I use BouffaloLabDevCube-v1.8.3 to flash my E907 firmware into BL808 flash memory with settings like that:

bl808_01

After flashing I reboot a processor and try to get serial output from both cores (C906 and E907). E907 core output looks well as I expected, but C906 core output says that Linux can't start:

[I][]
[I][]   ____                   ____               __  __      _
[I][]  / __ \                 |  _ \             / _|/ _|    | |
[I][] | |  | |_ __   ___ _ __ | |_) | ___  _   _| |_| |_ __ _| | ___
[I][] | |  | | '_ \ / _ \ '_ \|  _ < / _ \| | | |  _|  _/ _` | |/ _ \
[I][] | |__| | |_) |  __/ | | | |_) | (_) | |_| | | | || (_| | | (_) |
[I][]  \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/
[I][]        | |
[I][]        |_|
[I][]
[I][] Powered by BouffaloLab
[I][] Build:11:52:04,Mar  6 2023
[I][] Copyright (c) 2023 OpenBouffalo team
[I][] Copyright (c) 2022 Bouffalolab team
[I][] dynamic memory init success,heap s[I][LowLoad] D0 start...
[I][LowLoad] low_load start...
[I][LowLoad] Header at 0x5d5ff000
[E][LowLoad] invalid boot header magic: 0x94fc2036
[I][LowLoad] load time: 561 us

The error is invalid boot header magic: 0x94fc2036 I have no idea what it means but I guess this is building/flashing issue. Could you tell me how to fix that and force Linux start normally?