Skip to content

java does not install on Rpi-Zerow with Buster #3306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
volkerjaenisch opened this issue Oct 29, 2019 · 17 comments
Closed

java does not install on Rpi-Zerow with Buster #3306

volkerjaenisch opened this issue Oct 29, 2019 · 17 comments
Labels
Close within 30 days Issue will be closed within 30 days unless requested to stay open

Comments

@volkerjaenisch
Copy link

Failed to install java on a rpi-zerow

Installing ca-certificates-java via apt leads to:

Errors were encountered while processing:
 ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up ca-certificates-java (20190405) ...
cp: -r not specified; omitting directory '/etc/ssl/certs/java/cacerts'

This should not happen.

To reproduce
apt-get install ca-certificates-java

Expected behaviour
THe package should install cleanly

Actual behaviour
THe package fails

System
System Information

Raspberry Pi Zero W Rev 1.1
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

Raspberry Pi reference 2019-09-26
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage2

Linux raspberrypi 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l GNU/Linux
Revision : 9000c1
Serial : 000000001edcf469
Model : Raspberry Pi Zero W Rev 1.1
Throttled flag : throttled=0x0
Camera : supported=0 detected=0

Videocore information

Sep 24 2019 17:37:19
Copyright (c) 2012 Broadcom
version 6820edeee4ef3891b95fc01cf02a7abd7ca52f17 (clean) (release) (start)

alloc failures: 0
compactions: 0
legacy block fails: 0

Filesystem information

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 7345680 2067840 4943820 30% /
devtmpfs 217212 0 217212 0% /dev
tmpfs 221540 0 221540 0% /dev/shm
tmpfs 221540 3152 218388 2% /run
tmpfs 5120 4 5116 1% /run/lock
tmpfs 221540 0 221540 0% /sys/fs/cgroup
/dev/mmcblk0p1 258095 53032 205064 21% /boot
tmpfs 44308 0 44308 0% /run/user/1000

Filename Type Size Used Priority
/var/swap file 102396 7168 -2

Package version information

raspberrypi-ui-mods:
Installed: (none)
raspberrypi-sys-mods:
Installed: 20190730
openbox:
Installed: (none)
lxpanel:
Installed: (none)
pcmanfm:
Installed: (none)
rpd-plym-splash:
Installed: (none)

Networking Information

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet x.x.x.x netmask x.x.x.x
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet x.x.x.x netmask x.x.x.x broadcast x.x.x.x
inet6 y.y.y.y.y.y.y.y prefixlen 64 scopeid 0x0
inet6 y::y.y.y.y prefixlen 64 scopeid 0x20
ether m.m.m.m txqueuelen 1000 (Ethernet)
RX packets 282071 bytes 258736392 (246.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 72553 bytes 7361739 (7.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

USB Information

/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

config.txt

aphy_params_current=547
arm_freq=1000
audio_pwm_mode=514
config_hdmi_boost=5
core_freq=400
disable_auto_turbo=1
disable_commandline_tags=2
display_hdmi_rotate=-1
display_lcd_rotate=-1
dphy_params_current=547
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=300
ignore_lcd=1
init_uart_clock=0x2dc6c00
over_voltage_avs=0x249f0
pause_burst_frames=1
program_serial_random=1
sdram_freq=450
hdmi_force_cec_address:0=65535
hdmi_force_cec_address:1=65535
hdmi_pixel_freq_limit:0=0x9a7ec80
hdmi_pixel_freq_limit:1=0x9a7ec80
device_tree=-
hdmi_cvt:0=
hdmi_cvt:1=
hdmi_edid_filename:0=
hdmi_edid_filename:1=
hdmi_timings:0=
hdmi_timings:1=

cmdline.txt

coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:DC:F4:69 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 console=ttyS0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

raspi-gpio settings

BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT
GPIO 1: level=1 fsel=0 func=INPUT
GPIO 2: level=1 fsel=0 func=INPUT
GPIO 3: level=1 fsel=0 func=INPUT
GPIO 4: level=1 fsel=0 func=INPUT
GPIO 5: level=1 fsel=0 func=INPUT
GPIO 6: level=1 fsel=0 func=INPUT
GPIO 7: level=1 fsel=0 func=INPUT
GPIO 8: level=1 fsel=0 func=INPUT
GPIO 9: level=0 fsel=0 func=INPUT
GPIO 10: level=0 fsel=0 func=INPUT
GPIO 11: level=0 fsel=0 func=INPUT
GPIO 12: level=0 fsel=0 func=INPUT
GPIO 13: level=0 fsel=0 func=INPUT
GPIO 14: level=0 fsel=0 func=INPUT
GPIO 15: level=1 fsel=0 func=INPUT
GPIO 16: level=0 fsel=0 func=INPUT
GPIO 17: level=0 fsel=0 func=INPUT
GPIO 18: level=0 fsel=4 alt=0 func=PCM_CLK
GPIO 19: level=0 fsel=4 alt=0 func=PCM_FS
GPIO 20: level=0 fsel=4 alt=0 func=PCM_DIN
GPIO 21: level=0 fsel=4 alt=0 func=PCM_DOUT
GPIO 22: level=0 fsel=0 func=INPUT
GPIO 23: level=0 fsel=0 func=INPUT
GPIO 24: level=0 fsel=0 func=INPUT
GPIO 25: level=0 fsel=0 func=INPUT
GPIO 26: level=0 fsel=0 func=INPUT
GPIO 27: level=0 fsel=0 func=INPUT
BANK1 (GPIO 28 to 45):
GPIO 28: level=1 fsel=0 func=INPUT
GPIO 29: level=1 fsel=0 func=INPUT
GPIO 30: level=0 fsel=7 alt=3 func=CTS0
GPIO 31: level=0 fsel=7 alt=3 func=RTS0
GPIO 32: level=1 fsel=7 alt=3 func=TXD0
GPIO 33: level=1 fsel=7 alt=3 func=RXD0
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
GPIO 40: level=0 fsel=1 func=OUTPUT
GPIO 41: level=1 fsel=1 func=OUTPUT
GPIO 42: level=0 fsel=0 func=INPUT
GPIO 43: level=1 fsel=4 alt=0 func=GPCLK2
GPIO 44: level=0 fsel=1 func=OUTPUT
GPIO 45: level=1 fsel=1 func=OUTPUT
BANK2 (GPIO 46 to 53):
GPIO 46: level=0 fsel=0 func=INPUT
GPIO 47: level=0 fsel=1 func=OUTPUT
GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3

vcdbg log messages

001480.450: brfs: File read: /mfs/sd/config.txt
001481.194: brfs: File read: 1809 bytes
001531.414: brfs: File read: /mfs/sd/config.txt
001532.134: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
001714.493: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
001714.585: *** Restart logging
001714.651: brfs: File read: 1809 bytes
001731.439: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001732.707: brfs: File read: /mfs/sd/cmdline.txt
001732.782: Read command line from file 'cmdline.txt':
001732.839: 'console=serial0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait'
001737.525: brfs: File read: 121 bytes
001740.550: brfs: File read: /mfs/sd/bcm2708-rpi-zero-w.dtb
001740.615: Loading 'bcm2708-rpi-zero-w.dtb' to 0x100 size 0x5f57
001832.243: brfs: File read: 24407 bytes
001833.998: brfs: File read: /mfs/sd/config.txt
001834.480: brfs: File read: 1809 bytes
001839.814: brfs: File read: /mfs/sd/overlays/hifiberry-dac.dtbo
001851.768: Loaded overlay 'hifiberry-dac'
003944.834: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined
003968.420: brfs: File read: 655 bytes
004307.403: brfs: File read: /mfs/sd/kernel.img
004307.470: Loading 'kernel.img' to 0x8000 size 0x4cbd38
004307.538: Device tree loaded to 0x1bfe9c00 (size 0x63ab)
004309.105: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
006269.325: vchiq_core: vchiq_init_state: slot_zero = 0x5b580000, is_master = 1
006275.360: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
006282.279: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x00000023
020161.802: brfs: File read: 5029176 bytes

dmesg log

[ 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=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbswap=1 smsc95xx.macaddr=m.m.m.m vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 console=ttyS0,115200 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: 434424K/458752K available (6973K kernel code, 635K rwdata, 2080K rodata, 464K init, 797K bss, 16136K 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.000031] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000093] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000221] bcm2835: system timer (irq = 27)
[ 0.000642] Console: colour dummy device 80x30
[ 0.001280] console [tty1] enabled
[ 0.001360] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 0.060398] pid_max: default: 32768 minimum: 301
[ 0.060969] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.061029] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.062475] CPU: Testing write buffer coherency: ok
[ 0.063873] Setting up static identity map for 0x8200 - 0x8238
[ 0.065371] devtmpfs: initialized
[ 0.076067] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.076536] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.076615] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.077999] pinctrl core: initialized pinctrl subsystem
[ 0.079610] NET: Registered protocol family 16
[ 0.082870] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.089900] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.089976] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.090144] Serial: AMBA PL011 UART driver
[ 0.093663] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[ 0.137436] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[ 0.140009] SCSI subsystem initialized
[ 0.140341] usbcore: registered new interface driver usbfs
[ 0.140489] usbcore: registered new interface driver hub
[ 0.140744] usbcore: registered new device driver usb
[ 0.161216] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-09-24 17:37, variant start
[ 0.171247] raspberrypi-firmware soc:firmware: Firmware hash is 6820edeee4ef3891b95fc01cf02a7abd7ca52f17
[ 0.183613] clocksource: Switched to clocksource timer
[ 0.288050] VFS: Disk quotas dquot_6.6.0
[ 0.288234] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.288600] FS-Cache: Loaded
[ 0.288976] CacheFiles: Loaded
[ 0.308379] NET: Registered protocol family 2
[ 0.309768] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.309892] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.310009] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.310132] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.310323] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.310391] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.310845] NET: Registered protocol family 1
[ 0.312002] RPC: Registered named UNIX socket transport module.
[ 0.312065] RPC: Registered udp transport module.
[ 0.312096] RPC: Registered tcp transport module.
[ 0.312124] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.314387] hw perfevents: no irqs for PMU, sampling events not supported
[ 0.314511] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 0.318648] Initialise system trusted keyrings
[ 0.319125] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.334301] FS-Cache: Netfs 'nfs' registered for caching
[ 0.335672] NFS: Registering the id_resolver key type
[ 0.335770] Key type id_resolver registered
[ 0.335806] Key type id_legacy registered
[ 0.335860] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.341604] Key type asymmetric registered
[ 0.341673] Asymmetric key parser 'x509' registered
[ 0.341811] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.342335] io scheduler noop registered
[ 0.342392] io scheduler deadline registered (default)
[ 0.343007] io scheduler cfq registered
[ 0.343060] io scheduler mq-deadline registered (default)
[ 0.343096] io scheduler kyber registered
[ 0.345963] bcm2708_fb soc:fb: FB found 1 display(s)
[ 0.378815] Console: switching to colour frame buffer device 160x64
[ 0.402948] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1280x1024
[ 0.407507] bcm2835-rng 20104000.rng: hwrng registered
[ 0.408235] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 0.409774] vc-sm: Videocore shared memory driver
[ 0.410735] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 0.433418] brd: module loaded
[ 0.448416] loop: module loaded
[ 0.449556] Loading iSCSI transport class v2.0-870.
[ 0.450798] usbcore: registered new interface driver smsc95xx
[ 0.451068] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.479409] dwc_otg 20980000.usb: base=(ptrval)
[ 0.680102] Core Release: 2.80a
[ 0.680273] Setting default values for core params
[ 0.680494] Finished setting default values for core params
[ 0.881164] Using Buffer DMA mode
[ 0.881344] Periodic Transfer Interrupt Enhancement - disabled
[ 0.881561] Multiprocessor Interrupt Enhancement - disabled
[ 0.881767] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 0.882043] Dedicated Tx FIFOs mode
[ 0.883086] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = db514000 dma = 0x5b514000 len=9024
[ 0.883448] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 0.884242] dwc_otg: Microframe scheduler enabled
[ 0.884497] WARN::hcd_init_fiq:457: FIQ on core 0
[ 0.884712] WARN::hcd_init_fiq:458: FIQ ASM at c04fdd70 length 36
[ 0.884955] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
[ 0.885198] dwc_otg 20980000.usb: DWC OTG Controller
[ 0.893861] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 0.902387] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[ 0.910906] Init: Port Power? op_state=1
[ 0.919267] Init: Power Port (0)
[ 0.928039] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.936610] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.945189] usb usb1: Product: DWC OTG Controller
[ 0.953756] usb usb1: Manufacturer: Linux 4.19.75+ dwc_otg_hcd
[ 0.962377] usb usb1: SerialNumber: 20980000.usb
[ 0.972187] hub 1-0:1.0: USB hub found
[ 0.981145] hub 1-0:1.0: 1 port detected
[ 0.990882] dwc_otg: FIQ enabled
[ 0.990896] dwc_otg: NAK holdoff enabled
[ 0.990904] dwc_otg: FIQ split-transaction FSM enabled
[ 0.990924] Module dwc_common_port init
[ 0.991542] usbcore: registered new interface driver usb-storage
[ 1.000775] mousedev: PS/2 mouse device common for all mice
[ 1.010961] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.020071] bcm2835-cpufreq: min=700000 max=1000000
[ 1.029536] sdhci: Secure Digital Host Controller Interface driver
[ 1.038173] sdhci: Copyright(c) Pierre Ossman
[ 1.047478] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe
[ 1.057071] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[ 1.066195] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.075686] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.084583] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.093413] usbcore: registered new interface driver usbhid
[ 1.102031] usbhid: USB HID core driver
[ 1.112162] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 1.123416] [vc_sm_connected_init]: start
[ 1.136518] [vc_sm_connected_init]: end - returning 0
[ 1.147552] Initializing XFRM netlink socket
[ 1.156482] NET: Registered protocol family 17
[ 1.165376] Key type dns_resolver registered
[ 1.176033] registered taskstats version 1
[ 1.184716] Loading compiled-in X.509 certificates
[ 1.204265] uart-pl011 20201000.serial: cts_event_workaround enabled
[ 1.212974] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 1.224868] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.233429] mmc-bcm2835 20300000.mmcnr: DMA channel allocated
[ 1.243302] Indeed it is in host mode hprt0 = 00021501
[ 1.322466] random: fast init done
[ 1.334782] sdhost: log_buf @ (ptrval) (5b513000)
[ 1.382080] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.392613] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.401324] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.412386] of_cfs_init
[ 1.441829] of_cfs_init: OK
[ 1.451296] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.460008] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.469279] Waiting for root device PARTUUID=6c586e13-02...
[ 1.479321] Indeed it is in host mode hprt0 = 00001101
[ 1.550336] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.617350] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.630644] mmc0: new high speed SDHC card at address aaaa
[ 1.642616] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[ 1.655849] mmcblk0: p1 p2
[ 1.712741] mmc1: new high speed SDIO card at address 0001
[ 1.724543] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[ 1.733319] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.742074] usb 1-1: Product: USB 2.0 Hub
[ 1.751878] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.761149] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.777855] hub 1-1:1.0: USB hub found
[ 1.787600] hub 1-1:1.0: 4 ports detected
[ 1.797744] devtmpfs: mounted
[ 1.813965] Freeing unused kernel memory: 464K
[ 1.822736] This architecture does not have kernel memory protection.
[ 1.831532] Run /sbin/init as init process
[ 2.223766] usb 1-1.2: new low-speed USB device number 3 using dwc_otg
[ 2.473340] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c312, bcdDevice= 1.01
[ 2.482574] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.491624] usb 1-1.2: Product: USB Multimedia Keyboard
[ 2.500637] usb 1-1.2: Manufacturer: LITEON Technology
[ 2.525129] input: LITEON Technology USB Multimedia Keyboard as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C312.0001/input/input0
[ 2.604883] hid-generic 0003:046D:C312.0001: input,hidraw0: USB HID v1.10 Keyboard [LITEON Technology USB Multimedia Keyboard] on usb-20980000.usb-1.2/input0
[ 2.686992] systemd[1]: System time before build time, advancing clock.
[ 2.823349] usb 1-1.3: new low-speed USB device number 4 using dwc_otg
[ 2.869943] NET: Registered protocol family 10
[ 2.882216] Segment Routing with IPv6
[ 2.955607] 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.977373] systemd[1]: Detected architecture arm.
[ 3.032082] systemd[1]: Set hostname to .
[ 3.054132] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[ 3.102983] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c051, bcdDevice=30.00
[ 3.113496] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.123771] usb 1-1.3: Product: USB-PS/2 Optical Mouse
[ 3.134003] usb 1-1.3: Manufacturer: Logitech
[ 3.163541] input: Logitech USB-PS/2 Optical Mouse as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C051.0002/input/input1
[ 3.188751] hid-generic 0003:046D:C051.0002: input,hidraw1: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-20980000.usb-1.3/input0
[ 5.148008] 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.170051] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 6.077372] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.113363] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.126650] systemd[1]: Listening on Journal Socket (/dev/log).
[ 6.152480] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.165299] systemd[1]: Listening on udev Kernel Socket.
[ 6.191336] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 6.218614] systemd[1]: Listening on udev Control Socket.
[ 7.995615] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 8.088792] systemd[1]: Mounted POSIX Message Queue File System.
[ 8.280420] systemd[1]: Starting File System Check on Root Device...
[ 8.397105] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[ 8.555724] systemd[1]: Starting Apply Kernel Variables...
[ 8.805013] systemd[1]: Mounting Kernel Configuration File System...
[ 9.249756] systemd[1]: Started File System Check Daemon to report status.
[ 9.453232] systemd[1]: Mounted Kernel Configuration File System.
[ 9.693979] systemd[1]: Started Apply Kernel Variables.
[ 9.767581] systemd[1]: Started Journal Service.
[ 11.189315] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 11.940781] systemd-journald[78]: Received request to flush runtime journal from PID 1
[ 14.428971] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.432226] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 14.432254] [vc_sm_connected_init]: start
[ 14.452891] media: Linux media interface: v0.10
[ 14.502746] [vc_sm_connected_init]: installed successfully
[ 14.704535] videodev: Linux video capture interface: v2.00
[ 14.864254] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.876028] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.900675] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.978389] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.104165] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 15.104242] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 15.179382] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 15.179449] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 15.191565] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 15.191632] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 15.425440] snd-rpi-simple soc:sound: pcm5102a-hifi <-> 20203000.i2s mapping ok
[ 16.871141] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 17.368581] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 18.014226] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 18.041080] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 18.041607] usbcore: registered new interface driver brcmfmac
[ 18.319850] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 18.320066] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 18.321270] 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
[ 23.829998] random: crng init done
[ 23.830026] random: 7 urandom warning(s) missed due to ratelimiting
[ 27.714446] uart-pl011 20201000.serial: no DMA platform data
[ 28.721661] 8021q: 802.1Q VLAN Support v1.8
[ 30.604740] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 30.604770] brcmfmac: power management disabled
[ 30.612035] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 32.396097] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 32.801690] Bluetooth: Core ver 2.22
[ 32.801855] NET: Registered protocol family 31
[ 32.801866] Bluetooth: HCI device and connection manager initialized
[ 32.801894] Bluetooth: HCI socket layer initialized
[ 32.801908] Bluetooth: L2CAP socket layer initialized
[ 32.801962] Bluetooth: SCO socket layer initialized
[ 32.828577] Bluetooth: HCI UART driver ver 2.3
[ 32.828596] Bluetooth: HCI UART protocol H4 registered
[ 32.833534] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 32.837128] Bluetooth: HCI UART protocol Broadcom registered
[ 33.643817] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 33.643831] Bluetooth: BNEP filters: protocol multicast
[ 33.643858] Bluetooth: BNEP socket layer initialized

@volkerjaenisch volkerjaenisch changed the title ca-certificates-java does not install java does not install on Rpi-Zerow with Buster Oct 29, 2019
@XECDesign
Copy link
Contributor

Oracle Java and OpenJDK do not support ARMv6. I am not sure what the last version that did was, but I think it was 8. OpenJDK Zero may also work, but I haven't tested it. Both are available from the repo.

You'll need to uninstall whtarever jre/jdk you've got on there first.

@JamesH65
Copy link
Contributor

This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.

@JamesH65 JamesH65 added the Close within 30 days Issue will be closed within 30 days unless requested to stay open label Feb 14, 2020
@pelwell pelwell closed this as completed Nov 18, 2020
@JsBergbau
Copy link

JsBergbau commented Feb 6, 2022

Oracle Java and OpenJDK do not support ARMv6

That is not exactly true. It is the server vm that isn't supported, but client VM is supported. Here https://www.azul.com/downloads/?version=java-11-lts&architecture=arm-32-bit-hf&package=jdk you find Java / JDK 11 for Raspberry PI Zero W.

Here https://github.com/JsBergbau/OpenJDK-Raspberry-Pi-Zero-W-armv6/blob/main/README.md you find OpenJDK 17 for armv6 including the build instructions. It runs so far flawlessly signal-cli.

Regarding functionality both client and server VM are the same.

https://www.oracle.com/java/technologies/hotspotfaq.html

What's the difference between the -client and -server systems?
These two systems are different binaries. They are essentially two different compilers (JITs)interfacing to the same runtime system. The client system is optimal for applications which need fast startup times or small footprints, the server system is optimal for applications where the overall performance is most important. In general the client system is better suited for interactive applications such as GUIs. Some of the other differences include the compilation policy,heap defaults, and inlining policy.

@XECDesign
Copy link
Contributor

Here https://github.com/JsBergbau/OpenJDK-Raspberry-Pi-Zero-W-armv6/blob/main/README.md you find OpenJDK 17 for armv6 including the build instructions. It runs so far flawlessly signal-cli.

Thanks, I'll see if I can make the Debian package build with those options.

@JsBergbau
Copy link

Thanks. Build instructions for OpenJDK 11 should also be the same. I suggest starting with OpenJDK 17 and if you need help, open an issue in the Repo and I'll have a look. When you've managed building OpenJDK 17 then we can have a look at OpenJDK 11.

@XECDesign
Copy link
Contributor

OpenJDK 17 seems to work, but I'm not having any luck with 11:

$ java
=============== DEBUG MESSAGE: Atomic load(jlong) unsupported on this platform ================

=============== DEBUG MESSAGE: Atomic store(jlong) unsupported on this platform ================


[error occurred during error reporting ((null)), id 0xe0000000, Internal Error (../../src/hotspot/cpu/arm/macroAssembler_arm.cpp:1629)]

...

=============== DEBUG MESSAGE: Atomic store(jlong) unsupported on this platform ================


[error occurred during error reporting (printing all threads), id 0xe0000000, Internal Error (../../src/hotspot/cpu/arm/macroAssembler_arm.cpp:1629)]

=============== DEBUG MESSAGE: Atomic store(jlong) unsupported on this platform ================

[Too many errors, abort]
Aborted

OpenJDK 17 is in the 'untested' repo component for now.

@JsBergbau
Copy link

JsBergbau commented Feb 17, 2022

Thanks for your info. I'm really happy that compiling JDK17 worked and will be available soon in the official repo.

I didn't try to compile JDK11 so far because I used JDK 11 provided by Azul https://www.azul.com/downloads/?version=java-11-lts&architecture=arm-32-bit-hf&package=jdk

What options did you use to compile JDK 11?

@XECDesign
Copy link
Contributor

From the build log:

cd build && MAKE_VERBOSE=y QUIETLY= LOG=debug IGNORE_OLD_CONFIG=true LIBFFI_LIBS=-lffi_pic JOBS=9 bash ../configure \
        --with-jvm-variants=client,server --with-boot-jdk=/usr/lib/jvm/java-11-openjdk-armhf --disable-precompiled-headers --with-jvm-features=shenandoahgc --with-extra-cflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -fno-stack-protector -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2' --with-extra-cxxflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -fno-stack-protector -Wno-deprecated-declarations -fpermissive -Wno-deprecated-declarations' --with-extra-ldflags='-Xlinker -z -Xlinker relro -Xlinker -Bsymbolic-functions' \
        --with-abi-profile=armv6-vfp-hflt --enable-ccache --with-vendor-name='Raspbian' --with-vendor-url='Unknown' --with-vendor-bug-url='Unknown' --with-vendor-vm-bug-url='Unknown' --with-version-pre='' --with-version-build='9' --with-version-opt='post-Raspbian-1~deb11u1+rpt1' --with-copyright-year=2022  --with-debug-level=release --with-native-debug-symbols=internal --enable-unlimited-crypto --with-zlib=system --with-giflib=system --with-libpng=system --with-libjpeg=system --with-lcms=system --with-pcsclite=system --disable-warnings-as-errors --disable-javac-server  --with-harfbuzz=system --with-stdc++lib=dynamic --with-num-cores=9

@JsBergbau
Copy link

I've noticed --with-jvm-variants=client,server. Since I've only build the client variante for OpenJDK17: Can you also provide the options for your working OpenJDK 17?

@XECDesign
Copy link
Contributor

Pretty much the same for OpenJDK17, just missing the --with-abi-profile=armv6-vfp-hflt. OpenJDK11 behaves the same with or without it under Raspbian's build environment, I was just seeing if it made a difference.

cd build && MAKE_VERBOSE=y QUIETLY= LOG=info,cmdlines IGNORE_OLD_CONFIG=true LIBFFI_LIBS=-lffi_pic JOBS=9 bash ../configure \
        --with-jvm-variants=client,server --with-boot-jdk=/usr/lib/jvm/java-17-openjdk-armhf --disable-precompiled-headers --with-jvm-features= --with-extra-cflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -fno-stack-protector -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2' --with-extra-cxxflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -fno-stack-protector -Wno-deprecated-declarations -fpermissive -Wno-deprecated-declarations' --with-extra-ldflags='-Xlinker -z -Xlinker relro -Xlinker -Bsymbolic-functions' \
        --with-jni-libpath=/usr/lib/arm-linux-gnueabihf/jni:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf:/usr/lib/jni:/lib:/usr/lib --enable-ccache --disable-jtreg-failure-handler --disable-warnings-as-errors --with-vendor-name='Raspbian' --with-vendor-url='http://www.raspbian.org/' --with-vendor-bug-url='https://bugs.launchpad.net/raspbian/+filebug' --with-vendor-vm-bug-url='https://bugs.launchpad.net/raspbian/+filebug' --with-vendor-name='Raspbian' --with-vendor-url='Unknown' --with-vendor-bug-url='Unknown' --with-vendor-vm-bug-url='Unknown' --with-version-pre='' --with-version-build='8' --with-version-opt='Raspbian-1~deb11u1+rpt1' --with-copyright-year=2022  --with-debug-level=release --with-native-debug-symbols=internal --enable-unlimited-crypto --with-zlib=system --with-giflib=system --with-libpng=system --with-libjpeg=system --with-lcms=system --with-pcsclite=system --disable-warnings-as-errors --disable-javac-server  --with-harfbuzz=system --with-stdc++lib=dynamic --with-num-cores=9

Building with server enabled as well for people who want it, but have an additional patch to jvm.cfg to default to client.

@JsBergbau
Copy link

I don't see the --with-sysroot= option, so this seems another build process and JDK-11 has no sysroot described in their help section.
I get JDK 11 configured by

 sh ./configure --openjdk-target=arm-linux-gnueabihf --with-sysroot=/home/pi/sysroot-armhf --with-abi-profile=armv6-vfp-hflt --with-num-cores=12 --with-memory-size=14000 --with-native-debug-symbols=zipped --with-jvm-variants=client --with-x=/home/pi/sysroot-armhf/usr --with-freetype=bundled

However when trying make images I get a lot of errors

make images
Building target 'images' in configuration 'linux-arm-normal-client-release'
Warning: No mercurial configuration present and no .src-rev
gmake[3]: *** Keine Regel vorhanden, um das Ziel „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/buildtools/langtools_tools_classes/_the.BUILD_TOOLS_LANGTOOLS.vardeps“,
  benötigt von „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/buildtools/langtools_tools_classes/_the.BUILD_TOOLS_LANGTOOLS_batch“, zu erstellen.  Schluss.
gmake[3]: *** Es wird auf noch nicht beendete Prozesse gewartet....
gmake[3]: *** Keine Regel vorhanden, um das Ziel „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/make-support/vardeps/make/ReleaseFile.gmk/create-info-file.vardeps“,
  benötigt von „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/jdk/release“, zu erstellen.  Schluss.
gmake[2]: *** [make/Main.gmk:344: release-file] Fehler 2
gmake[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
gmake[2]: *** [make/Main.gmk:73: buildtools-langtools] Fehler 2
gmake[3]: *** Keine Regel vorhanden, um das Ziel „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/make-support/vardeps/make/ModuleWrapper.gmk/java.base/ORDERED_CFG_VARIANTS.vardeps“,
  benötigt von „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/support/modules_libs/java.base/jvm.cfg“, zu erstellen.  Schluss.
gmake[3]: *** Es wird auf noch nicht beendete Prozesse gewartet....
gmake[3]: *** Keine Regel vorhanden, um das Ziel „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/hotspot/variant-client/tools/jvmti/_the.BUILD_JVMTI_TOOLS.vardeps“,
  benötigt von „/home/pi/jdk-jdk-11-28/build/linux-arm-normal-client-release/hotspot/variant-client/tools/jvmti/_the.BUILD_JVMTI_TOOLS_batch“, zu erstellen.  Schluss.
gmake[2]: *** [make/Main.gmk:250: hotspot-client-gensrc] Fehler 2
gmake[2]: *** [make/Main.gmk:162: java.base-copy] Fehler 2

ERROR: Build failed for target 'images' in configuration 'linux-arm-normal-client-release' (exit code 2)

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [/home/pi/jdk-jdk-11-28/make/Init.gmk:305: main] Fehler 2
make: *** [/home/pi/jdk-jdk-11-28/make/Init.gmk:186: images] Fehler 2

That seems to be a known problem https://www.mail-archive.com/[email protected]/msg12006.html

Since azul provides a working JDK11 for armv6 https://www.azul.com/downloads/?version=java-11-lts&architecture=arm-32-bit-hf&package=jdk I would write them. Hopefully they help the raspberry Pi foundation.

Otherwise I consider JDK 11 a minor issue, because there is a working JDK11 available for Raspberry PI Zero provided by Azul. But there is currently no official JDK 17 available, so getting JDK 17 in the stable tree of apt would be a great improvement.

@XECDesign
Copy link
Contributor

We build almost all of our packages natively, so a sysroot is not needed.

I didn't see the issue you're running into, so it seems to be fixed or worked around by Debian's packaging.

Since azul provides a working JDK11 for armv6 https://www.azul.com/downloads/?version=java-11-lts&architecture=arm-32-bit-hf&package=jdk I would write them. Hopefully they help the raspberry Pi foundation.

We've explored that avenue already. No luck.

Java issues in general seem to take a disproportionate amount of time to look into. At the end of the day, if OpenJDK devs don't want to support it, we can't do much about it without sacrificing more important work. In the meantime, Azul builds are available for people who require it.

Once the OpenJDK 17 build has had more testing, I can switch the 'full' images across so that everything works out of the box on armv6 pis, but I'll leave OpenJDK 11 as is.

@JsBergbau
Copy link

We build almost all of our packages natively, so a sysroot is not needed.

The commands look like that. What systems are you using to build then, since you configured 9 cores to use for the build? I've tried to use qemu with armv6 but with my limited knowledge I didn't manage to configure more than 512 MB RAM, because then it complained that Raspberry Pi also doesn't have more RAM.

I didn't see the issue you're running into, so it seems to be fixed or worked around by Debian's packaging.

For cross compiling I'm on Debian bullseye and there are no updates available. BTW I'm very glad that you're using Debian and not Ubuntu because with Ubuntu there are so many updates and a lot more kernel updates which require reboot. At least for fully x64 systems I use.

We've explored that avenue already. No luck.

This is a real pity and unfortunately does not speak for the company.

Java issues in general seem to take a disproportionate amount of time to look into. At the end of the day, if OpenJDK devs don't want to support it, we can't do much about it without sacrificing more important work.

For me Java is some ancient technology. It is very slow consumes a lot of memory and there are now much better alternatives available like Rust, Go or even python. Java claim(ed)s to run on Billions of devices but its so hard to get it to run on armv6. This is also very contradictory.
But since there are still a lot of programs based on Java you still need it.

What version of OpenJDK did you try to compile? Azul provides 11.0.14.1+1 which is probably based on https://github.com/openjdk/jdk/releases/tag/jdk-11%2B14
Maybe that compiles and runs flawlessly? Perhaps in the latest version --with-abi-profile=armv6-vfp-hflt is not used because of a bug and that leads to that problem.

But if that takes to much ressources just leave it and focus on more important problems.

@XECDesign
Copy link
Contributor

What systems are you using to build then, since you configured 9 cores to use for the build?

We have an ARM build server for these things.

What version of OpenJDK did you try to compile?

11.0.14

But if that takes to much ressources just leave it and focus on more important problems.

Yeah, I think I've put enough time into it. It takes forever to build and I don't have high hopes. On the bright side, OpenJDK 17 should make its way into the repo some time this week, I think. Thanks for the client jvm tip.

@JsBergbau
Copy link

Just for the record, I've also tried to crosscompile 11.0.14 https://github.com/openjdk/jdk/archive/refs/tags/jdk-11+14.tar.gz
Did also not work. I'm also giving up trying to compile JDK 11.

OpenJDK 17 should make its way into the repo some time this week, I think.

Thanks, that is great news.

@maknon
Copy link

maknon commented Jun 26, 2022

is there a chance to backport openjdk-17-jdk to buster

@JsBergbau
Copy link

JsBergbau commented Jul 3, 2022

There is OpenJDK 17 for Buster https://github.com/JsBergbau/OpenJDK-Raspberry-Pi-Zero-W-armv6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Close within 30 days Issue will be closed within 30 days unless requested to stay open
Projects
None yet
Development

No branches or pull requests

6 participants