Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Custom compiled firmware not building - how to debug?

49

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
49

【Linux】 Custom compiled firmware not building - how to debug?

Posted at 2/17/2023 01:55:18      View:2387 | Replies:5        Print      Only Author   [Copy Link] 1#
  • Type: Self-Compiled Firmware
  • SDK Package Name: rk3588_repo_sdk_v1.0.2a.7z
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: arm64: dts: rk3588 compatible:rk3588j,rk3588m and rk3588 can use the same firmware
  • Log: log.zip
Problem description and steps to reproduce:
I have not successfully been able to boot up my own self-compiled firmware.  I have the AIO-3588SJD4, and I have the Linux SDK.  I have followed the instructions provided via the SDK, and then the instructions on how to compile Ubuntu for this board.  After many issues, I was finally able to get my own firmware images built; however, when I flash the firmware to the device I get a black screen.  Are there any guides or documentation on how to debug this?  
Its possible the machine has partially booted up (though there is no output on the monitor), and no window manager has booted, just a black screen.  It does seem like the SSH service has at least partially booted (though it is strange that there is no tty output on bootup at all as I would expect), because I have tried using ssh to connect to the machine and I do get an initial conection; however the normal username/password "firefly/firefly" do not work.  I have not changed any build parameters, I have simply taken the provided SDK and followed the instructions.

I have tried using these configurations for my board:
aio-3588sjd4-ubuntu.mk
aio-3588sjd4-BE45-A1-ubuntu.mk

The other part that I am confused about.  The instructions say this:
5. Check your sdk version
         cd kernel; git tag

        rk3588/linux_release_v0.1.0a  
        rk3588/linux_release_v0.1.1a  # this is my version , Note that there may be many versions here, the latest one shall prevail

Note:
1. The initial SDK version is v0.1.0a.
2. Please pay attention to the update of the bundle directory,Subsequent updates only need to repeat steps 2, 3, and 4.


Thi latest version I see is rk3588/linux_release_v1.0.6b.  The instructions do not say this, but I'm assuming they are expecting me to switch to the latest version using this command:
git checkout rk3588/linux_release_v1.0.6b
which is what I have been doing.  Even if I do manage to find the right combination of kernel and device config, it would be very helpful to understand the steps to debug a non-booting system.


log.zip

112 Bytes, Down times: 0

Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 3/1/2023 11:33:26        Only Author  2#
Can the firmware on the web disk be started normally?
Reply

Use props Report

49

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
49
Posted at 3/2/2023 03:10:58        Only Author  3#
799959745 Posted at 3/1/2023 11:33
Can the firmware on the web disk be started normally?

I can flash and boot the firmware on the web.  If I use the SDK and build the firmware, then flash, the device goes to a black screen.
Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 3/2/2023 10:50:13        Only Author  4#
A new firmware adaptation version 1.2 will be released this week.
Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 3/2/2023 15:01:33        Only Author  5#
use this dtsi

aio-3588sjd4.dtsi.zip

3.15 KB, Down times: 1

Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 3/2/2023 16:31:52        Only Author  6#
Please update the sdk to v1.0.6c.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list