sipeed / LonganPi-3H-SDK

LonganPi 3H SDK
GNU General Public License v3.0
28 stars 14 forks source link

errors making uboot #51

Closed metrolan closed 3 months ago

metrolan commented 4 months ago

I'm still fighting to have a docker compliant image for LonganPI 3H. When running mkuboot.sh, I get following output and I wonder if this is OK.

arch/arm/mach-sunxi/dram_sun50i_h616.c: In function ‘mctl_phy_ca_bit_delay_compensation’:
arch/arm/mach-sunxi/dram_sun50i_h616.c:805:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
  805 |         switch (para->type) {
      |         ^~~~~~
arch/arm/mach-sunxi/dram_sun50i_h616.c: In function ‘mctl_phy_init’:
arch/arm/mach-sunxi/dram_sun50i_h616.c:877:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
  877 |         switch (para->type) {
      |         ^~~~~~
arch/arm/mach-sunxi/dram_sun50i_h616.c:924:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
  924 |         switch (para->type) {
      |         ^~~~~~
arch/arm/mach-sunxi/dram_sun50i_h616.c:944:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
  944 |         switch (para->type) {
      |         ^~~~~~
arch/arm/mach-sunxi/dram_sun50i_h616.c:1004:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
 1004 |         switch (para->type) {
      |         ^~~~~~
arch/arm/mach-sunxi/dram_sun50i_h616.c: In function ‘mctl_ctrl_init’:
arch/arm/mach-sunxi/dram_sun50i_h616.c:1155:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
 1155 |         switch (para->type) {
      |         ^~~~~~
arch/arm/mach-sunxi/dram_sun50i_h616.c:1177:9: warning: enumeration value ‘SUNXI_DRAM_TYPE_DDR4’ not handled in switch [-Wswitch]
 1177 |         switch (para->type) {
      |         ^~~~~~

File u-boot-sunxi-with-spl.bin is generated, but I don't know if is usable.

chriswue commented 3 months ago

First of they are warnings, not errors (if they were errors you wouldn't be able to build the uboot binary blob). I've just built a full image with an updated kernel and the same warnings appeared but the image is perfectly bootable.

metrolan commented 3 months ago

Thanks!!