odroid-c2 ; linux-odroid-c2-3.14.65-3 error (root is HDD)

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

odroid-c2 ; linux-odroid-c2-3.14.65-3 error (root is HDD)

Postby hatahata50 » Thu May 26, 2016 8:33 pm

Hi all .
in my case

$this->bbcode_second_pass_code('', '
pacman -S linux-odroid-c2
warning: linux-odroid-c2-3.14.65-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-odroid-c2-3.14.65-3

Total Installed Size: 42.14 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [#######################################] 100%
(1/1) checking package integrity [#######################################] 100%
(1/1) loading package files [#######################################] 100%
(1/1) checking for file conflicts [#######################################] 100%
(1/1) checking available disk space [#######################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms -q remove -q -m * -v * -k 3.14.65-3-ARCH
:: Processing package changes...
(1/1) reinstalling linux-odroid-c2 [#######################################] 100%
>>> Updating module dependencies. Please wait ...
depmod: WARNING: could not open /lib/modules/3.14.65-3-ARCH/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/3.14.65-3-ARCH/modules.builtin: No such file or directory
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux-odroid-c2.preset: 'default'
-> -k 3.14.65-3-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.14.65-3-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
find: '/sys/devices/': No such file or directory
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
==> ERROR: module not found: `usbhid'
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms -q install -m * -v * -k 3.14.65-3-ARCH


')

and
$this->bbcode_second_pass_code('', '
ls /lib/modules/3.14.65-3-ARCH/
modules.alias modules.builtin.bin modules.dep.bin modules.softdep modules.symbols.bin
modules.alias.bin modules.dep modules.devname modules.symbols
')

so i do again

$this->bbcode_second_pass_code('', '

pacman -Syu

')

something is immature about odroid-c2 .
but i belive hardkernel shall support it .
Last edited by hatahata50 on Sat May 28, 2016 3:03 am, edited 1 time in total.
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am

Re: odroid-c2 ; error when i install linux-odroid-c2-3.14.6

Postby hatahata50 » Fri May 27, 2016 12:03 pm

i install hardkernel's ubuntu .

$this->bbcode_second_pass_code('', '

uname -ar
Linux odroid64 3.14.65-61 #1 SMP PREEMPT Wed May 25 03:16:39 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux





dpkg -l | grep linux | grep ^ii
ii console-setup-linux 1.108ubuntu15 all Linux specific part of console-setup
ii libselinux1:arm64 2.4-3build2 arm64 SELinux runtime shared libraries
ii libv4l-0:arm64 1.10.0-1 arm64 Collection of video4linux support libraries
ii libv4lconvert0:arm64 1.10.0-1 arm64 Video4linux frame format conversion library
ii linux-base 4.0ubuntu1 all Linux image base package
ii linux-firmware 1.157 all Firmware for Linux kernel drivers
ii linux-image-3.14.29-29 20160226 arm64 Linux kernel binary image for version 3.14.29-29
ii linux-image-3.14.29-59 20160518 arm64 Linux kernel binary image for version 3.14.29-59
ii linux-image-3.14.65-61 20160525 arm64 Linux kernel binary image for version 3.14.65-61
ii linux-image-c2 29-1 arm64 Linux Kernel 3.14 Long Term for ODROID-C2
ii linux-libc-dev:arm64 4.4.0-23.41 arm64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii linux-tools-4.4.0-23 4.4.0-23.41 arm64 Linux kernel version specific tools for version 4.4.0-23
ii linux-tools-4.4.0-23-generic 4.4.0-23.41 arm64 Linux kernel version specific tools for version 4.4.0-23
ii linux-tools-common 4.4.0-23.41 all Linux kernel version specific tools for version 4.4.0
ii linux-tools-generic 4.4.0.23.24 arm64 Generic Linux kernel tools
ii pptp-linux 1.8.0-1 arm64 Point-to-Point Tunneling Protocol (PPTP) Client
ii util-linux 2.27.1-6ubuntu3 arm64 miscellaneous system utilities




')

kernel is not 4 but 3 .

----------------------------
regards
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am

Re: odroid-c2 ; error when i install linux-odroid-c2-3.14.6

Postby hatahata50 » Fri May 27, 2016 4:04 pm

Hi all .

is the correct place of modules is /usr/lib/modules or /lib/modules ?

because

$this->bbcode_second_pass_code('', '

ls /usr/lib/modules
3.14.65-3-ARCH 4.5.4-1-ARCH extramodules-3.14--odroid-c2

ls /lib/modules
3.14.29-21-ARCH extramodules-3.14--odroid-c2

')

and

$this->bbcode_second_pass_code('', '

# uname -ar
Linux odoroid 3.14.29-16-ARCH #1 SMP PREEMPT Thu Mar 31 19:44:19 MDT 2016 aarch64 GNU/Linux


# pacman -Q |grep odroid
linux-odroid-c2 3.14.65-3
linux-odroid-c2-headers 3.14.65-3
uboot-odroid-c2 2015.01-6

')


---
regards
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am

Re: odroid-c2 ; error when i install linux-odroid-c2-3.14.6

Postby WarheadsSE » Fri May 27, 2016 6:54 pm

You should not be in a situation where you have both. /lib should be a symlink to /usr/lib.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: odroid-c2 ; error when i install linux-odroid-c2-3.14.6

Postby hatahata50 » Fri May 27, 2016 8:40 pm

thanks for reply.


simp;e
$this->bbcode_second_pass_code('', '
ln -s /usr/lib/modules/3.14.65-3-ARCH /lib/modules/3.14.65-3-ARCH
')
did not solve the problem .

i wait the next kernel virsion .

i see that odroid-c2 kernel is provided by hardkernel .
i expect the time when odroid-c2 kernel is provided by not hardkernel but by arch arm teams .
-----
regards
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am

Re: odroid-c2 ; error when i install linux-odroid-c2-3.14.6

Postby hatahata50 » Fri May 27, 2016 9:57 pm

i at last manage to understand my mistakes .

my odroid-c2 is
boot is 4GB sd card
root is 250GB usb HDD .

so when i change /boot ( for example kernel update )

$this->bbcode_second_pass_code('', '
mount /dev/mmcblk0p1 /mp1
cp -aR /boot/* /mp1/boot/

rewrite /mp1/boot/boot.ini

')

this solved all. :D
namely

$this->bbcode_second_pass_code('', '
# uname -ar
Linux odoroid 3.14.65-3-ARCH #1 SMP PREEMPT Thu May 26 07:52:47 MDT 2016 aarch64 GNU/Linux


# pacman -Q | grep odroid
linux-odroid-c2 3.14.65-3
linux-odroid-c2-headers 3.14.65-3
uboot-odroid-c2 2015.01-6
')

and in armbian there is /usr/lib/nand-sata-install/nand-sata-install.sh
this may solve this problem automatically .


------------
regards


PS : boot.ini
$this->bbcode_second_pass_code('', '

# diff boot.ini /boot/boot.ini
21c21
< setenv m "720p60hz" # 60Hz
---
> # setenv m "720p60hz" # 60Hz
25c25


< # setenv m "1080p60hz" # Progressive 60Hz
---
> setenv m "1080p60hz" # Progressive 60Hz
93c93


< setenv bootargs "root=/dev/sda1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"
---
> setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"


')
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am

Re: odroid-c2 ; linux-odroid-c2-3.14.65-3 error (root is HDD

Postby WarheadsSE » Sat May 28, 2016 7:03 pm

Not having your /boot mounted during kernel/uboot upgrades would result in mis-matched versions.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: odroid-c2 ; linux-odroid-c2-3.14.65-3 error (root is HDD

Postby hatahata50 » Sat May 28, 2016 9:12 pm

i think from your good advice .

1) /etc/fstab
/dev/sda1 / ext4 errors=remount-ro 0 1
/dev/sda2 none swap sw 0 0
/dev/mmcblk0p1 /boot ext4 errors=remount-ro 0 1



2)cp -aR /usr/lib/modules/3.14.65-4-ARCH /lib/modules/
link is bad for my case (ln -s /usr/lib/modules/3.14.65-4-ARCH /lib/modules/3.14.65-4-ARCH )

3)rewrite /boot/boot.ini
/boot/boot.ini
ODROIDC2-UBOOT-CONFIG
setenv m "720p60hz" # 60Hz
setenv m_bpp "32"
setenv hpd "true"
setenv condev "console=ttyS0,115200n8 console=tty0" # on both
setenv mesontimer "1"
setenv nographics "0"
setenv bootargs "root=/dev/sda1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"
setenv loadaddr "0x11000000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
load mmc 0:1 ${loadaddr} /boot/Image
load mmc 0:1 ${dtb_loadaddr} /boot/dtbs/meson64_odroidc2.dtb
fdt addr ${dtb_loadaddr}
if test "${mesontimer}" = "0"; then fdt rm /meson_timer; fdt rm /cpus/cpu@0/timer; fdt rm /cpus/cpu@1/timer; fdt rm /cpus/cpu@2/timer; fdt rm /cpus/cpu@3/timer; fi
if test "${mesontimer}" = "1"; then fdt rm /timer; fi
if test "${nographics}" = "1"; then fdt rm /reserved-memory; fdt rm /aocec; fdt rm /mali@d00c0000; fi
load mmc 0:1 ${initrd_loadaddr} /boot/initramfs-linux.img
booti ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}


but i did not do these yet .
when next kernel update apear , i try these .

sd card is shorter life time and limitted size , so i love hard disk for server .

df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 752932 0 752932 0% /dev
run 879280 480 878800 1% /run
/dev/sda1 234040372 82184588 139944096 37% /
tmpfs 879280 72 879208 1% /dev/shm
tmpfs 879280 0 879280 0% /sys/fs/cgroup
tmpfs 879280 8 879272 1% /tmp
/dev/mmcblk0p1 3731208 722560 2799396 21% /boot
tmpfs 175856 8 175848 1% /run/user/1001
----------
tuyosi
my page is http://odroid-akita.blogspot.jp/2016/05 ... linux.html
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am

Re: odroid-c2 ; linux-odroid-c2-3.14.65-3 error (root is HDD

Postby WarheadsSE » Sun May 29, 2016 8:15 pm

The correct fix: move the contents of /lib to /usr/lib, and create the proper symlink.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: odroid-c2 ; linux-odroid-c2-3.14.65-3 error (root is HDD

Postby hatahata50 » Mon May 30, 2016 2:02 am

i am afraid

$this->bbcode_second_pass_code('', '

cp -aR /lib/* /usr/lib/

rm -rf /lib

ln -s /usr/lib /lib

')

may make system stop .

how to slip by this danger ?
hatahata50
 
Posts: 47
Joined: Tue Dec 29, 2015 6:04 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 19 guests

cron