Kernel 4.7

AmigaOne X1000 platform specific issues related to Linux only.

Re: Kernel 4.7

Postby xeno74 » Sun Aug 28, 2016 4:14 pm

It is also possible to compile two kernels. One with Darren's new Nemo patch and one with the old Nemo patch. Srtest, what do you think about compiling two kernels?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4118
Joined: Fri Mar 23, 2012 8:58 am

Re: Kernel 4.7

Postby Srtest » Sun Aug 28, 2016 6:21 pm

My current situation with the following boot line:
______
ramdisk -z -addr=0x24000000 -ext2 cf0:initrd.img
setenv bootargs "root=LABEL=SHYNIX rootflags=subvol=@,device=/dev/sdc1,acl rw rootfstype=btrfs elevator=deadline radeon.dpm=0 radeon.audio=0"
boot -elf -noints -ext2 cf0:vmlinux
______

* Oh the pic didn't include the line where it tries to mount /dev on /root/dev/ and not /dev. I don't get it, why the hell does that being effected from the added btrfs parameters in kernel which the boot process indicates has things to do with required self tests (that I passed). Isn't all that stuff has to do with recovery mode (Busybox) ?
Attachments
20160828_054703.jpg
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.7

Postby mechanic » Sun Aug 28, 2016 8:10 pm

I really do not understand what is going on with your system, or your boot commands.

It looks to my rookie eye like you are loading a ramdisk and then not using it.

Perhaps there is something here > https://wiki.debian.org/Btrfs that might give a clue.

Sorry. :(
A-Eon A1X1000
User avatar
mechanic
 
Posts: 488
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel 4.7

Postby Srtest » Sun Aug 28, 2016 9:35 pm

From a successful boot on that boot line (without "acl") on the kernel/image 4.7 (no btrfs options):

scsi 3:0:0:0: Direct-Access ATA SanDisk SD8SBAT1 1000 PQ: 0 ANSI: 5
[ 4.304906] sd 3:0:0:0: [sdc] 250069680 512-byte logical blocks: (128 GB/119 GiB)
[ 4.304919] sd 3:0:0:0: Attached scsi generic sg3 type 0
[ 4.305129] sd 3:0:0:0: [sdc] Write Protect is off
[ 4.305136] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 4.305196] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.305216] scsi 6:0:0:0: Direct-Access ATA SanDisk SDCFHSNJ 7.08 PQ: 0 ANSI: 5
[ 4.305925] sdc: sdc1 sdc2 sdc3 sdc4
[ 4.306685] sd 3:0:0:0: [sdc] Attached SCSI disk

Btrfs loaded, crc32c=crc32c-generic
[ 4.340718] BTRFS: selftest: sectorsize: 4096 nodesize: 4096
[ 4.340721] BTRFS: selftest: sectorsize: 4096 nodesize: 8192
[ 4.340724] BTRFS: selftest: sectorsize: 4096 nodesize: 16384
[ 4.340726] BTRFS: selftest: sectorsize: 4096 nodesize: 32768
[ 4.340729] BTRFS: selftest: sectorsize: 4096 nodesize: 65536

[ 4.380899] systemd-udevd[1134]: starting version 204
[ 4.502664] usb 2-1: New USB device found, idVendor=04f2, idProduct=0116
[ 4.502673] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.502678] usb 2-1: Product: USB Keyboard
[ 4.502683] usb 2-1: Manufacturer: CHICONY
[ 4.512871] input: CHICONY USB Keyboard as /devices/pci0000:00/0000:00:11.0/0000:05:13.0/usb2/2-1/2-1:1.0/0003:04F2:0116.0001/input/input7
[ 4.550215] input: HDA ATI SB Front Mic as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input6
[ 4.563871] hid-generic 0003:04F2:0116.0001: input: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-0000:05:13.0-1/input0
[ 4.564058] input: HDA ATI SB Rear Mic as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input8
[ 4.564211] input: HDA ATI SB Line as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input9
[ 4.564359] input: HDA ATI SB Line Out Front as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input10
[ 4.564506] input: HDA ATI SB Line Out Surround as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input11
[ 4.564680] input: HDA ATI SB Line Out CLFE as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input12
[ 4.564831] input: HDA ATI SB Line Out Side as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input13
[ 4.564979] input: HDA ATI SB Front Headphone as /devices/pci0000:00/0000:00:11.0/0000:05:14.2/sound/card1/input14
[ 4.673776] random: nonblocking pool is initialized
[ 4.791602] usb 2-2: new full-speed USB device number 3 using ohci-pci
[ 4.948660] usb 2-2: New USB device found, idVendor=056a, idProduct=0318
[ 4.948668] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.948673] usb 2-2: Product: Bamboo Pad, USB
[ 4.948678] usb 2-2: Manufacturer: Wacom Co.,Ltd.
[ 4.956456] input: Wacom USB Bamboo PAD Finger as /devices/pci0000:00/0000:00:11.0/0000:05:13.0/usb2/2-2/2-2:1.0/0003:056A:0318.0002/input/input16
[ 4.956896] wacom 0003:056A:0318.0002: : USB HID v1.10 Device [Wacom Co.,Ltd. Bamboo Pad, USB] on usb-0000:05:13.0-2/input0
[ 4.964681] input: Wacom USB Bamboo PAD Pen as /devices/pci0000:00/0000:00:11.0/0000:05:13.0/usb2/2-2/2-2:1.1/0003:056A:0318.0003/input/input18
[ 4.964958] wacom 0003:056A:0318.0003: : USB HID v1.10 Device [Wacom Co.,Ltd. Bamboo Pad, USB] on usb-0000:05:13.0-2/input1
[ 5.226799] BTRFS: device label SHYNIX devid 1 transid 371283 /dev/sdc1
[ 5.228295] BTRFS info (device sdc1): disk space caching is enabled
[ 5.228300] BTRFS info (device sdc1): has skinny extents
[ 5.261907] BTRFS info (device sdc1): detected SSD devices, enabling SSD mode
[ 5.437699] systemd[1]: systemd 231 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 5.437869] systemd[1]: Detected architecture ppc64.
[ 5.439021] systemd[1]: Set hostname to <AmigaOneX1000>.
[ 5.487258] systemd-gpt-auto-generator[1293]: Failed to determine block device of root file system: Inappropriate ioctl for device
[ 5.508611] systemd[1284]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with error code 1.
[ 5.778421] systemd[1]: dnsmasq.service: Cannot add dependency job, ignoring: Unit dnsmasq.service is masked.
[ 5.778440] systemd[1]: rdnssd.service: Cannot add dependency job, ignoring: Unit rdnssd.service is masked.
[ 5.778474] systemd[1]: unbound.service: Cannot add dependency job, ignoring: Unit unbound.service is masked.
[ 5.778499] systemd[1]: connman-wait-online.service: Cannot add dependency job, ignoring: Unit connman-wait-online.service is masked.
[ 5.778559] systemd[1]: cgmanager.service: Cannot add dependency job, ignoring: Unit cgmanager.service is masked.
[ 5.778611] systemd[1]: cgproxy.service: Cannot add dependency job, ignoring: Unit cgproxy.service is masked.
[ 5.778638] systemd[1]: connman-vpn.service: Cannot add dependency job, ignoring: Unit connman-vpn.service is masked.
[ 5.778802] systemd[1]: connman.service: Cannot add dependency job, ignoring: Unit connman.service is masked.
[ 5.782131] systemd[1]: Listening on udev Kernel Socket.
[ 5.782403] systemd[1]: Listening on Journal Socket.
[ 5.782473] systemd[1]: Reached target User and Group Name Lookups.
[ 5.782570] systemd[1]: Listening on Journal Socket (/dev/log).
[ 5.782660] systemd[1]: Listening on RPCbind Server Activation Socket.
[ 5.799421] systemd[1]: Listening on udev Control Socket.
[ 5.799638] systemd[1]: Created slice System Slice.
[ 5.806870] systemd[1]: Starting Load Kernel Modules...
[ 5.807965] systemd[1]: Starting Set the hostname to the value stored on the writable partition...
[ 5.809688] systemd[1]: Starting Set the console keyboard layout...
[ 5.809897] systemd[1]: Listening on LVM2 poll daemon socket.
[ 5.810051] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 5.811192] systemd[1]: Mounting POSIX Message Queue File System...
[ 5.811370] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 5.812488] systemd[1]: Mounting Huge Pages File System...
[ 5.813645] systemd[1]: Mounting Debug File System...
[ 5.817668] systemd[1]: Starting Uncomplicated firewall...
[ 5.819674] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 5.820810] systemd[1]: Mounting RPC Pipe File System...
[ 5.821047] systemd[1]: Created slice User and Session Slice.
[ 5.821109] systemd[1]: Reached target Slices.
[ 5.821273] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 5.822962] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[ 5.827475] systemd[1]: Started Read required files in advance.
[ 5.846564] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 5.846661] systemd[1]: Reached target Encrypted Volumes.
[ 5.846794] systemd[1]: Listening on Syslog Socket.
[ 5.849253] systemd[1]: Starting Journal Service...
[ 5.851801] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 5.855114] systemd[1]: Mounted Debug File System.
[ 5.855197] systemd[1]: Mounted POSIX Message Queue File System.
[ 5.855255] systemd[1]: Mounted Huge Pages File System.
[ 5.878669] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[ 5.879155] systemd[1]: Failed to start Load Kernel Modules.
[ 5.897255] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[ 5.897277] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[ 5.898255] systemd[1]: Started Set the hostname to the value stored on the writable partition.
[ 5.902223] systemd[1]: Started Uncomplicated firewall.
[ 5.904493] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 5.905579] systemd[1]: Mounted RPC Pipe File System.
[ 5.906414] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[ 5.907175] systemd[1]: ureadahead.service: Unit entered failed state.
[ 5.907192] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[ 5.917919] BTRFS info (device sdc1): disk space caching is enabled
[ 5.926511] systemd[1]: Started Remount Root and Kernel File Systems.
[ 5.934893] systemd[1]: Started LVM2 metadata daemon.
[ 5.936767] systemd[1]: Starting Load/Save Random Seed...
[ 5.940714] systemd[1]: Starting udev Coldplug all Devices...
[ 5.942645] systemd[1]: Starting Create Static Device Nodes in /dev...
[ 5.944374] systemd[1]: Mounting Configuration File System...
[ 5.949121] systemd[1]: Mounting FUSE Control File System...
[ 5.954311] systemd[1]: Starting Apply Kernel Variables...
[ 5.980489] systemd[1]: Mounted Configuration File System.
[ 5.989863] systemd[1]: Started Load/Save Random Seed.
[ 5.992018] systemd[1]: Mounted FUSE Control File System.
[ 6.038832] systemd[1]: Started Create Static Device Nodes in /dev.
[ 6.039816] systemd[1]: Started Apply Kernel Variables.
[ 6.052966] systemd[1]: Starting udev Kernel Device Manager...
[ 6.179766] systemd[1]: Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
[ 6.298379] systemd[1]: Started udev Kernel Device Manager.
[ 6.505923] systemd[1]: Started udev Coldplug all Devices.
[ 6.822625] systemd[1]: Started Journal Service.
[ 6.891232] systemd-journald[1317]: Received request to flush runtime journal from PID 1
[ 8.216298] 8139too 0000:06:06.0 enp6s6: renamed from eth1
[ 8.347434] pasemi_mac 0000:00:14.3 enp0s20f3: renamed from eth0
[ 9.815819] 8139too 0000:06:06.0 enp6s6: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 10.454121] systemd-gpt-auto-generator[2588]: Failed to determine block device of root file system: Inappropriate ioctl for device
[ 11.236728] systemd-gpt-auto-generator[2706]: Failed to determine block device of root file system: Inappropriate ioctl for device
[ 11.821760] systemd-gpt-auto-generator[2758]: Failed to determine block device of root file system: Inappropriate ioctl for device
[ 96.821346] Bluetooth: Core ver 2.21
[ 96.821394] NET: Registered protocol family 31
[ 96.821397] Bluetooth: HCI device and connection manager initialized
[ 96.822393] Bluetooth: HCI socket layer initialized
[ 96.822400] Bluetooth: L2CAP socket layer initialized
[ 96.822424] Bluetooth: SCO socket layer initialized
[ 103.514529] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 103.514536] Bluetooth: BNEP filters: protocol multicast
[ 103.514544] Bluetooth: BNEP socket layer initialized
[ 141.927419] ata2.00: SB600 AHCI: limiting to 255 sectors per cmd
[ 141.930028] ata2.00: SB600 AHCI: limiting to 255 sectors per cmd
[ 141.930037] ata2.00: configured for UDMA/133
[ 141.930044] ata2: EH complete
[ 141.962506] ata4.00: SB600 AHCI: limiting to 255 sectors per cmd
[ 141.967268] ata4.00: SB600 AHCI: limiting to 255 sectors per cmd
[ 141.967276] ata4.00: configured for UDMA/133
[ 141.967283] ata4: EH complete
[ 146.494058] EXT2-fs (sdd1): warning: mounting unchecked fs, running e2fsck is recommended
[ 884.314942] EXT4-fs (sdc3): mounting ext3 file system using the ext4 subsystem
[ 884.319059] EXT4-fs (sdc3): mounted filesystem with ordered data mode. Opts: (null)
[ 4081.946528] usb 1-5: new high-speed USB device number 4 using ehci-pci
[ 4082.062198] usb 1-5: New USB device found, idVendor=04e8, idProduct=6860
[ 4082.062205] usb 1-5: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 4082.062210] usb 1-5: Product: SAMSUNG_Android
[ 4082.062215] usb 1-5: Manufacturer: SAMSUNG
[ 4082.062219] usb 1-5: SerialNumber: 4d00c81b460b80f3
[ 4082.263013] usb 1-5: usbfs: process 4510 (pool) did not claim interface 0 before use
[ 4082.367515] usb 1-5: reset high-speed USB device number 4 using ehci-pci
[ 4082.483315] usb 1-5: usbfs: process 4510 (pool) did not claim interface 0 before use
[ 4082.587516] usb 1-5: reset high-speed USB device number 4 using ehci-pci
[ 4082.703360] usb 1-5: usbfs: process 4510 (pool) did not claim interface 0 before use
[ 4082.703680] usb 1-5: usbfs: process 4510 (pool) did not claim interface 0 before use
[12882.370792] systemd-gpt-auto-generator[6012]: Failed to determine block device of root file system: Inappropriate ioctl for device
[12883.261162] systemd-gpt-auto-generator[6030]: Failed to determine block device of root file system: Inappropriate ioctl for device
[12883.900896] systemd-gpt-auto-generator[6052]: Failed to determine block device of root file system: Inappropriate ioctl for device
[12884.565562] systemd-gpt-auto-generator[6073]: Failed to determine block device of root file system: Inappropriate ioctl for device
[12885.402522] systemd-gpt-auto-generator[6097]: Failed to determine block device of root file system: Inappropriate ioctl for device

___________

And then after a minute and a half while trying to perform an operation on the root partition it fails due to missing dependencies (which can only be from btrfs in kernel as everything is installed) and I get the LightDM logon screen (I can't use sddm on lxqt after qt5.6 and qt5.7).

___________

Because of that last issue I booted to OpenSuze (EXT4) and did a btrfs check and repair on the unmounted partition and it found nothing as it should because for a modern installation that is crippled because it lacks a graphics card everything works great here on btrfs + Lubuntu LXqt 11 on Qt5.7.
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.7

Postby mechanic » Sun Aug 28, 2016 10:55 pm

Looks to me like your problems start earlier. And I don't have a clue.


[ 5.439021] systemd[1]: Set hostname to <AmigaOneX1000>.
[ 5.487258] systemd-gpt-auto-generator[1293]: Failed to determine block device of root file system: Inappropriate ioctl for device
[ 5.508611] systemd[1284]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with error code 1.

[ 146.494058] EXT2-fs (sdd1): warning: mounting unchecked fs, running e2fsck is recommended
A-Eon A1X1000
User avatar
mechanic
 
Posts: 488
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel 4.7

Postby Srtest » Sun Aug 28, 2016 11:34 pm

mechanic wrote:Looks to me like your problems start earlier. And I don't have a clue.


[ 5.439021] systemd[1]: Set hostname to <AmigaOneX1000>.
[ 5.487258] systemd-gpt-auto-generator[1293]: Failed to determine block device of root file system: Inappropriate ioctl for device
[ 5.508611] systemd[1284]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with error code 1.

[ 146.494058] EXT2-fs (sdd1): warning: mounting unchecked fs, running e2fsck is recommended


I tried rootdelay of about 5 seconds it didn't help.

That warning is about the cf card ext2 partition which works and I checked it quite recently with Gparted (gpt here means gparted I think certainly not the partition table), yet it continues to bother me after about a week of booting. Almost every test I ran on the btrfs /dev/sdc1 showed it is okay while one or two tests said there is something wrong with the superblock. Again, trying fixing and repairing with btrfs tools while unmounted didn't find an error which leads me to think that gparted or parted or whatever is the cause and does not recognize the latest btrfs definitions.
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.7

Postby mechanic » Mon Aug 29, 2016 12:35 am

Srtest wrote: Again, trying fixing and repairing with btrfs tools while unmounted didn't find an error which leads me to think that gparted or parted or whatever is the cause and does not recognize the latest btrfs definitions.


Very possible since btrfs is still getting fixes and mods.
A-Eon A1X1000
User avatar
mechanic
 
Posts: 488
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel 4.7

Postby Srtest » Wed Aug 31, 2016 3:55 pm

I fixed it!

I've been going over scripts in /etc especially systemd related and while I can't remember which script it was, it had a setting that was marked out which was "fsckfix" so I unmarked it and changed it from "auto" to "no" which resulted in no more file systems check on a file system that doesn't require it because it has its own tools. So there's no more a minute and half delay before entering logon screen as the regular btrfs checkups don't require or are not compatible with the deafult fsck of the system. It seems my instinct was correct and the thing was an issue of communication that when switched off allowed normal operations.

This means we can now calmly test the btrfs options or more and find out one by one which is the problematic kernel option even if it means going back to the basic btrfs option.
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.7

Postby mechanic » Wed Aug 31, 2016 4:19 pm

Good job! :D

Now I wonder if some time in the future if that could be used again as btrfs evolves. :?:
A-Eon A1X1000
User avatar
mechanic
 
Posts: 488
Joined: Sat Jun 25, 2011 10:22 pm

Re: Kernel 4.7

Postby Srtest » Wed Aug 31, 2016 4:55 pm

mechanic wrote:Good job! :D

Now I wonder if some time in the future if that could be used again as btrfs evolves. :?:


Why?
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

PreviousNext

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: No registered users and 17 guests