Clearfog pro cn9130 bootloader

Hy :slight_smile:

For my bootloader, i use uboot and the fit (kernel+fdt).

When it boots, it freeze after starting kernel…

  Press UP/DOWN to move, ENTER to select
***Carte : pro***
**type de DiagBox**
**=>Pro**
***Boot conf : conf-pro***
***Chargement Initrd : rootfs_alpha.cpio.gz***
90023840 bytes read in 7982 ms (10.8 MiB/s)
***Chargement Buildargs***
***Chargement fichier fit : diagbox.itb***
21945344 bytes read in 1973 ms (10.6 MiB/s)
***Boot M***
## Loading kernel from FIT Image at 05500000 ...
   Using 'conf-pro' configuration
   Trying 'kernel' kernel subimage
     Description:  Kernel
     Created:      2023-03-11  13:34:02 UTC
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x055000b4
     Data Size:    21893632 Bytes = 20.9 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x07000000
     Entry Point:  0x07000000
     Hash algo:    sha1
     Hash value:   e09d0e72910065ad6e51e87e4650ec8a33a38467
   Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 05500000 ...
   Using 'conf-pro' configuration
   Trying 'fdt-pro' fdt subimage
     Description:  dtb
     Created:      2023-03-11  13:34:02 UTC
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x069e1394
     Data Size:    25157 Bytes = 24.6 KiB
     Architecture: AArch64
     Load Address: 0x05400003
     Hash algo:    sha1
     Hash value:   7241b8c020648d25d9863785409cfd5ef1b16681
   Verifying Hash Integrity ... sha1+ OK
   Loading fdt from 0x069e1394 to 0x05400003
   Booting using the fdt blob at 0x5400003
   Loading Kernel Image
   Loading Device Tree to 000000007f5d5000, end 000000007f5de244 ... OK

Starting kernel ...

But if i disconenct the pwoer supply and reconnect, it boots normally.

Has someone an idea please?

Thank you by advance

What version of u-boot and kernel are you running?

1 Like

Hy :slight_smile:

For the kernel, i use the 6.1.

About U-boot, i work with the 209-10, with all patch like here : https://github.com/SolidRun/cn913x_build

I post the conf of u-boot here : http://pastebin.fr/120676

My kernel image and fdt is in a fit image.

the config of fit image :

/dts-v1/;
/ {
	description = "Kernel et dtb";

	#address-cells = <1>;
	images {
		kernel {
			description = "Kernel";
			data = /incbin/("/etc/diagbox/binaries/Image");
			type = "kernel";
			arch = "arm64";
			os = "linux";
			compression = "none";
			load = <0x7000000>;
			entry = <0x7000000>;
			hash-1 {
				algo = "sha1";
			};
		};
		fdt-pro {
			description = "dtb";
			data = /incbin/("/etc/diagbox/binaries/diagbox_pro.dtb");
			type = "flat_dt";
			arch = "arm64";
			load = <0x6f00000>;
			entry = <0x6f00000>;
			compression = "none";
			hash-1 {
				algo = "sha1";
			};
		};
		fdt-base {
			description = "dtb";
			data = /incbin/("/etc/diagbox/binaries/diagbox_base.dtb");
			type = "flat_dt";
			arch = "arm64";
			load = <0x6f00000>;
			entry = <0x6f00000>;
			compression = "none";
			hash-1 {
				algo = "sha1";
			};
		};
	};
 
	configurations {
		default = "conf-pro";
		conf-pro {
			description = "Configuration";
			kernel = "kernel";
			fdt = "fdt-pro";
			hash-1 {
				algo = "sha1";
			};
		};
		conf-base {
			description = "Configuration";
			kernel = "kernel";
			fdt = "fdt-base";
			hash-1 {
				algo = "sha1";
			};
		};
	};
};

I think the problem come from uboot, deduction made by research on internet.

But i don’t know why it works when a i do an electric reboot

Hy.
One question : Is clearfog pro cn9130 compatible with uboot 2022-10?