Checking the error the kernel seems to be right and the problem begins with the init, so may be it's not compatible with the device.
I was reading about rpi zero cflags and how they force armv6.


So a good way to test It could be uncompressing the release on a debían image and try to jail with chroot (or look for a static binary and run It), probably the result Will be the same.

Regards,

El 26 mar. 2020 18:24, Guido Caliandro <guido.caliandro@gmail.com> escribió:
Hi all
thank you very much for your support

I started with raspberry kernel from github and I had kernel panic, that's why I cross compiled kernel with bcmrpi_defconfig configuration as suggested on raspberry pi site.
To be sure that my crosstools is ok, I also compiled bcm2709_defconfig for my PI 3 and bcm2711_defconfig for my PI 4 and all of them are working great.
This is my kernel panic on PI zero:

DSC_3569.JPG

I then launched raspbian (that works ok... only soooo slow!) and you can see /proc/cpuinfo and dmesg below.
At the moment I'm trying to compile with last conf that I see on source code: bcm2835_defconfig .... I'll let you know...

Thanks again
Ciao

Guido
 

/proc/cpuinfo:
---------------
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2835
Revision : 9000c1
Serial : 00000000c0129f5e
Model : Raspberry Pi Zero W Rev 1.1
------------

dmesg:
------------
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.75+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1270 Tue Sep 24 18:38:54 BST 2019
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 8 MiB at 0x1b400000
[    0.000000] On node 0 totalpages: 114688
[    0.000000]   Normal zone: 1008 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x49c with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:12:9F:5E vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 434420K/458752K available (6973K kernel code, 635K rwdata, 2080K rodata, 464K init, 797K bss, 16140K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xdc800000 - 0xff800000   ( 560 MB)
                   lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (6975 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   ( 464 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 636 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 798 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 25197 entries in 74 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000033] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000096] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000227] bcm2835: system timer (irq = 27)
[    0.000648] Console: colour dummy device 80x30
[    0.001279] console [tty1] enabled
[    0.001360] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060402] pid_max: default: 32768 minimum: 301
[    0.060972] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.061032] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.062471] CPU: Testing write buffer coherency: ok
[    0.063870] Setting up static identity map for 0x8200 - 0x8238
[    0.065363] devtmpfs: initialized
[    0.076006] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.076496] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.076573] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.077957] pinctrl core: initialized pinctrl subsystem
[    0.079555] NET: Registered protocol family 16
[    0.082784] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.089776] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.089854] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.090023] Serial: AMBA PL011 UART driver
[    0.093372] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.137657] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[    0.140277] SCSI subsystem initialized
[    0.140608] usbcore: registered new interface driver usbfs
[    0.140755] usbcore: registered new interface driver hub
[    0.141125] usbcore: registered new device driver usb
[    0.161140] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-09-24 17:37, variant start
[    0.171172] raspberrypi-firmware soc:firmware: Firmware hash is 6820edeee4ef3891b95fc01cf02a7abd7ca52f17
[    0.183489] clocksource: Switched to clocksource timer
[    0.287961] VFS: Disk quotas dquot_6.6.0
[    0.288145] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.288512] FS-Cache: Loaded
[    0.288903] CacheFiles: Loaded
[    0.308296] NET: Registered protocol family 2
[    0.309700] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.309822] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.309938] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.310061] TCP: Hash tables configured (established 4096 bind 4096)
[    0.310252] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.310322] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.310758] NET: Registered protocol family 1
[    0.311907] RPC: Registered named UNIX socket transport module.
[    0.311973] RPC: Registered udp transport module.
[    0.312003] RPC: Registered tcp transport module.
[    0.312031] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.314270] hw perfevents: no irqs for PMU, sampling events not supported
[    0.314396] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.318536] Initialise system trusted keyrings
[    0.319012] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.334134] FS-Cache: Netfs 'nfs' registered for caching
[    0.335521] NFS: Registering the id_resolver key type
[    0.335638] Key type id_resolver registered
[    0.335674] Key type id_legacy registered
[    0.335726] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.341453] Key type asymmetric registered
[    0.341524] Asymmetric key parser 'x509' registered
[    0.341661] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.342186] io scheduler noop registered
[    0.342246] io scheduler deadline registered (default)
[    0.342876] io scheduler cfq registered
[    0.342928] io scheduler mq-deadline registered (default)
[    0.342963] io scheduler kyber registered
[    0.345833] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.392338] Console: switching to colour frame buffer device 228x61
[    0.426125] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1824x984
[    0.430860] bcm2835-rng 20104000.rng: hwrng registered
[    0.431656] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.433319] vc-sm: Videocore shared memory driver
[    0.434600] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    0.458344] brd: module loaded
[    0.474074] loop: module loaded
[    0.475095] Loading iSCSI transport class v2.0-870.
[    0.476367] usbcore: registered new interface driver smsc95xx
[    0.476658] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.505039] dwc_otg 20980000.usb: base=(ptrval)
[    0.705834] Core Release: 2.80a
[    0.706018] Setting default values for core params
[    0.706254] Finished setting default values for core params
[    0.907038] Using Buffer DMA mode
[    0.907232] Periodic Transfer Interrupt Enhancement - disabled
[    0.907433] Multiprocessor Interrupt Enhancement - disabled
[    0.907622] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.907870] Dedicated Tx FIFOs mode
[    0.908815] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = db514000 dma = 0x5b514000 len=9024
[    0.909164] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.909905] dwc_otg: Microframe scheduler enabled
[    0.910149] WARN::hcd_init_fiq:457: FIQ on core 0
[    0.919300] WARN::hcd_init_fiq:458: FIQ ASM at c04fdd70 length 36
[    0.927952] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
[    0.937028] dwc_otg 20980000.usb: DWC OTG Controller
[    0.945784] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.954936] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    0.963701] Init: Port Power? op_state=1
[    0.972627] Init: Power Port (0)
[    0.981864] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.991166] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.000180] usb usb1: Product: DWC OTG Controller
[    1.009077] usb usb1: Manufacturer: Linux 4.19.75+ dwc_otg_hcd
[    1.018167] usb usb1: SerialNumber: 20980000.usb
[    1.028379] hub 1-0:1.0: USB hub found
[    1.037708] hub 1-0:1.0: 1 port detected
[    1.047649] dwc_otg: FIQ enabled
[    1.047665] dwc_otg: NAK holdoff enabled
[    1.047671] dwc_otg: FIQ split-transaction FSM enabled
[    1.047696] Module dwc_common_port init
[    1.048357] usbcore: registered new interface driver usb-storage
[    1.058106] mousedev: PS/2 mouse device common for all mice
[    1.068744] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.078320] bcm2835-cpufreq: min=700000 max=1000000
[    1.088456] sdhci: Secure Digital Host Controller Interface driver
[    1.097347] sdhci: Copyright(c) Pierre Ossman
[    1.107234] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe
[    1.117124] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[    1.126427] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.136483] ledtrig-cpu: registered to indicate activity on CPUs
[    1.145709] hidraw: raw HID events driver (C) Jiri Kosina
[    1.155657] usbcore: registered new interface driver usbhid
[    1.164775] usbhid: USB HID core driver
[    1.175231] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[    1.187285] [vc_sm_connected_init]: start
[    1.200811] [vc_sm_connected_init]: end - returning 0
[    1.212212] Initializing XFRM netlink socket
[    1.221713] NET: Registered protocol family 17
[    1.230709] Key type dns_resolver registered
[    1.241670] registered taskstats version 1
[    1.250595] Loading compiled-in X.509 certificates
[    1.270827] uart-pl011 20201000.serial: cts_event_workaround enabled
[    1.279902] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    1.292258] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.301584] mmc-bcm2835 20300000.mmcnr: DMA channel allocated
[    1.338639] sdhost: log_buf @ (ptrval) (5b513000)
[    1.383965] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.394716] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.403961] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.414870] of_cfs_init
[    1.444635] of_cfs_init: OK
[    1.454598] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.464113] Waiting for root device PARTUUID=6c586e13-02...
[    1.474475] random: fast init done
[    1.485441] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.556996] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.571286] mmc0: new high speed SDHC card at address aaaa
[    1.582900] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.598580]  mmcblk0: p1 p2
[    1.640286] mmc1: new high speed SDIO card at address 0001
[    1.655995] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.665218] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.693902] devtmpfs: mounted
[    1.707995] Freeing unused kernel memory: 464K
[    1.717130] This architecture does not have kernel memory protection.
[    1.726037] Run /sbin/init as init process
[    2.587657] systemd[1]: System time before build time, advancing clock.
[    2.774570] NET: Registered protocol family 10
[    2.786324] Segment Routing with IPv6
[    2.866366] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    2.887769] systemd[1]: Detected architecture arm.
[    2.953599] systemd[1]: Set hostname to <raspberrypi>.
[    2.970773] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[    5.105290] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    5.116068] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    6.042840] random: systemd: uninitialized urandom read (16 bytes read)
[    6.141864] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    6.153427] random: systemd: uninitialized urandom read (16 bytes read)
[    6.165356] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    6.189922] random: systemd: uninitialized urandom read (16 bytes read)
[    6.202598] systemd[1]: Listening on udev Control Socket.
[    6.228085] systemd[1]: Listening on Journal Socket (/dev/log).
[    7.002514] i2c /dev entries driver
[    8.003919] systemd[1]: Started Load Kernel Modules.
[    8.242452] systemd[1]: Mounted Kernel Debug File System.
[    8.393956] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    8.513991] systemd[1]: Started Restore / save the current clock.
[    8.608397] systemd[1]: Mounted POSIX Message Queue File System.
[    8.808738] systemd[1]: Starting File System Check on Root Device...
[    9.004895] systemd[1]: Mounting Kernel Configuration File System...
[    9.287558] systemd[1]: Starting Apply Kernel Variables...
[    9.435324] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[    9.524669] systemd[1]: Started Journal Service.
[   11.098014] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   11.853342] systemd-journald[76]: Received request to flush runtime journal from PID 1
[   14.705459] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   14.724759] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   14.724785] [vc_sm_connected_init]: start
[   14.728595] media: Linux media interface: v0.10
[   14.740510] [vc_sm_connected_init]: installed successfully
[   14.891025] videodev: Linux video capture interface: v2.00
[   15.055826] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   15.066132] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   15.090720] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   15.163142] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   15.267298] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[   15.267391] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[   15.281677] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[   15.281748] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[   15.298802] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[   15.298870] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[   15.992906] snd-rpi-justboom-dac soc:sound: ASoC: CPU DAI (null) not registered - will retry
[   16.057361] snd-rpi-justboom-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   16.070918] snd-rpi-justboom-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   17.106222] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   17.627943] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   18.156817] snd-rpi-justboom-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   18.168389] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   18.185900] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   18.186401] usbcore: registered new interface driver brcmfmac
[   18.191741] snd-rpi-justboom-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   18.472394] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   18.472611] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   18.478297] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   24.344319] snd-rpi-justboom-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   24.364421] snd-rpi-justboom-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   25.494634] pcm512x 1-004d: Linked as a consumer to regulator.1
[   25.495619] pcm512x 1-004d: Failed to reset device: -121
[   25.496036] pcm512x: probe of 1-004d failed with error -121
[   27.919452] uart-pl011 20201000.serial: no DMA platform data
[   27.936901] 8021q: 802.1Q VLAN Support v1.8
[   29.314506] random: crng init done
[   29.314536] random: 7 urandom warning(s) missed due to ratelimiting
[   29.974906] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   30.150686] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   30.150717] brcmfmac: power management disabled
[   31.881217] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   33.083801] Bluetooth: Core ver 2.22
[   33.083999] NET: Registered protocol family 31
[   33.084009] Bluetooth: HCI device and connection manager initialized
[   33.084039] Bluetooth: HCI socket layer initialized
[   33.084053] Bluetooth: L2CAP socket layer initialized
[   33.084128] Bluetooth: SCO socket layer initialized
[   33.110966] Bluetooth: HCI UART driver ver 2.3
[   33.110988] Bluetooth: HCI UART protocol H4 registered
[   33.116108] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   33.116474] Bluetooth: HCI UART protocol Broadcom registered
[   34.016190] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   34.016207] Bluetooth: BNEP filters: protocol multicast
[   34.016238] Bluetooth: BNEP socket layer initialized


Il giorno gio 26 mar 2020 alle ore 13:33 Fredrik <fredrik@rinnestam.se> ha scritto:
you could use the upstream kernels just to get going atleast 

On 26 Mar 2020, at 13:05, pitillo@crux-arm.nu wrote:


Hey Guido,
Haven't tested that device but a 32b generic release should work.

May be you are missing something in the kernel?

Regards,

El 24 mar. 2020 9:06, Guido Caliandro <guido.caliandro@gmail.com> escribió:
Hi all,
I'm trying to run CRUX-ARM 3.5 (or any other version) to a Raspberry PI zero, but no way to make it works.
I successfully cross-compiled last kernel with pi zero config, as described here but I'm having kernel panic at boot.

Has anybody successfully run CRUX-ARM on PI zero?

Thanks

Guido

_______________________________________________
crux-arm mailing list
crux-arm@crux-arm.nu
https://crux-arm.nu/mailman/listinfo/crux-arm