Ubuntu dist-upgrade problem

Moderators: odroid, mdrjr

Ubuntu dist-upgrade problem

Unread postby sasa » Thu Jan 29, 2015 7:05 am

Hi,

when I've tried sudo apt-get dist-upgrade I always get this error:

Code: Select all
Selecting previously unselected package linux-image-3.10.66-46.
(Reading database ... 20421 files and directories currently installed.)
Preparing to unpack .../linux-image-3.10.66-46_20150128_armhf.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/remove-old-on-upgrade 3.10.66-46 /boot/uImage-3.10.6
run-parts: /etc/kernel/preinst.d/remove-old-on-upgrade exited with return code 1
Failed to process /etc/kernel/preinst.d at /var/lib/dpkg/tmp.ci/preinst line 361.
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.10.66-46_20150128_armhf.de
 subprocess new pre-installation script returned error exit status 2
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.10.66-46 /boot/vmlinuz-3.10.66-46
Preparing to unpack .../linux-image-c1_46-1_armhf.deb ...
Unpacking linux-image-c1 (46-1) over (37-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.10.66-46_20150128_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sasa
 
Posts: 10
Joined: Thu Jan 29, 2015 7:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu dist-upgrade problem

Unread postby mdrjr » Thu Jan 29, 2015 5:33 pm

What image you are using?
mdrjr
Site Admin
 
Posts: 11552
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu dist-upgrade problem

Unread postby sasa » Thu Jan 29, 2015 6:19 pm

I'm using Ubuntu 14.04.1 lts minimal (http://odroid.in/ubuntu_14.04lts/ubuntu ... 121.img.xz).
sasa
 
Posts: 10
Joined: Thu Jan 29, 2015 7:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu dist-upgrade problem

Unread postby meveric » Thu Jan 29, 2015 7:00 pm

the file /etc/kernel/preinst.d/remove-old-on-upgrade is wrong:
open it as root in an editor and change the last line like this:
Code: Select all
[ -f /media/boot/meson8b_odroidc.dts ] && rm -rf /media/boot/meson8b_odroidc.dts || true

that should fix it.

in fact @mdrjr
i wrote you that this is a bug that needs to be fixed.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 6482
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Ubuntu dist-upgrade problem

Unread postby KurtE » Fri Jan 30, 2015 1:27 am

I wonder if this is the same issue I ran into, where yesterday I downloaded the ubuntu image for the odroid-c (ubuntu-14.04.1lts-lubuntu-odroid-c1-20150120.img.xz)
I then flashed the emmc, I then connected to hdmi/keyboard/mouse to configure (adduser, wifi, timezone, expand emmc)

I then decided that before I would use my own built version of the kernel, I did a: sudo apt-get update... upgrade... dist-upgrade

I shutdown and then removed the hdmi, mouse, keyboard (wish easy way to do the above headless especially wifi, but different subject)

I then first tried connecting it up to my linux machine, with screen to debug monitor and the monitor would startup and then stop working, could still ssh into it... Moved it over to windows machine with putty and same...
From Putty:
Code: Select all
QA5:A;SVN:B72;POC:17F;STS:0;BOOT:0;INIT:0;READ:41;READ:41;READ:0;CHECK:0;PASS:0;
-----------------------------------------------------------------------
* Welcome to Hardkernel's ODROID-C... (Built at 19:33:00 Dec  8 2014) *
-----------------------------------------------------------------------
CPU : AMLogic S805
MEM : 1024MB (DDR3@792MHz)
BID : HKC13C0001
S/N : HKC1CB0349B6897E
0x0000009f
Loading U-boot...success.


U-boot-00000-ge7d4447-dirty(odroidc@e7d4447d) (Jan 19 2015 - 03:09:01)

DRAM:  1 GiB
relocation Offset is: 2ff1c000
MMC:   eMMC: 0, SDCARD: 1
IR init is done!
vpu clk_level = 3
set vpu clk: 182150000Hz, readback: 182150000Hz(0x701)
mode = 6  vic = 4
set HDMI vic: 4
mode is: 6
viu chan = 1
config HPLL
config HPLL done
reconfig packet setting done
MMC read: dev # 0, block # 33984, count 12288 ... 12288 blocks read: OK
There is no valid bmp file at the given address
============================================================
Vendor: Man 110100 Snr 51566255 Rev: 3.2 Prod: 008G9
            Type: Removable Hard Disk
            Capacity: 7456.0 MB = 7.2 GB (15269888 x 512)
------------------------------------------------------------
Partition     Start Sector     Num Sectors     Type
    1                 3072          263168       6
    2               266240        15002625      83
============================================================
Net:   Meson_Ethernet
init suspend firmware done. (ret:0)
Hit Enter key to stop autoboot -- :  0
exit abortboot: 0
reading boot.ini

2290 bytes read
Loading boot.ini from mmc0:1 (vfat)
Executing the script...
setenv m "1080p"                # 1080P@60Hz
setenv vout_mode "hdmi"
setenv m_bpp "32"
setenv disableuhs "disableuhs"
setenv vpu "1"
setenv hdmioutput "1"
setenv condev "console=tty0"                    # on display (HDMI)
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro ${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs}"
fatload mmc 0:1 0x21000000 uImage
reading uImage

5381062 bytes read
fatload mmc 0:1 0x22000000 uInitrd
reading uInitrd

2113869 bytes read
fatload mmc 0:1 0x21800000 meson8b_odroidc.dtb
reading meson8b_odroidc.dtb

18090 bytes read
fdt addr 21800000
if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi
if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi
bootm 0x21000000 0x22000000 0x21800000"
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-3.10.66-46
   Image Type:   ARM Linux Kernel Image (lzo compressed)
   Data Size:    5380998 Bytes = 5.1 MiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 22000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    2113805 Bytes = 2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 21800000
   Booting using the fdt blob at 0x21800000
   Uncompressing Kernel Image ... OK
uboot time: 5211670 us.
Using machid 0xf81 from environment
From device tree /memory/ node aml_reserved_end property, for relocate ramdisk and fdt, relocate_addr: 0x520d001
   Loading Ramdisk to 05008000, end 0520c10d ... OK
   Loading Device Tree to 05000000, end 050076a9 ... OK

Starting kernel ...

From tail of dmesg:
Code: Select all
[  136.566606@2] [0x0] = 0x1dd0190
[  136.566611@2] [0x4] = 0xf800ca
[  136.566616@2] [0x8] = 0x82006e
[  136.566621@2] [0xc] = 0x3c0030
[  136.566625@2] [0x10] = 0x30fa0013
[  136.566630@2] [0x18] = 0x6f19000
[  136.566635@2] [0x1c] = 0x9f40
[  136.566639@2] [0x20] = 0x0
[  136.566644@2] [0x24] = 0x0
[  136.566649@2] [0x28] = 0x0
[  136.566654@2] set_remote_mode[65]
[  136.666241@2] init: auto-serial-console main process ended, respawning
[  136.713936@3] aml_audio_i2s_mute_flag: flag=0
[  136.713971@3] aml_spdif_unmute
[  136.807279@2] init: auto-serial-console main process ended, respawning
[  136.957489@0] init: auto-serial-console main process ended, respawning
[  137.046115@3] init: auto-serial-console main process ended, respawning
[  137.118177@3] init: auto-serial-console main process ended, respawning
[  137.177061@3] init: plymouth-stop pre-start process (1810) terminated with status 1
[  137.179804@3] init: auto-serial-console main process ended, respawning
[  137.243696@2] init: auto-serial-console main process ended, respawning
[  137.306751@2] init: auto-serial-console main process ended, respawning
[  137.353259@1] init: auto-serial-console main process ended, respawning
[  137.390986@1] init: auto-serial-console main process ended, respawning
[  137.430810@2] init: auto-serial-console respawning too fast, stopped

Kurt
KurtE
 
Posts: 217
Joined: Wed Jun 19, 2013 9:39 am
languages_spoken: english

Re: Ubuntu dist-upgrade problem

Unread postby tobetter » Fri Jan 30, 2015 5:34 am

KurtE wrote:I wonder if this is the same issue I ran into, where yesterday I downloaded the ubuntu image for the odroid-c (ubuntu-14.04.1lts-lubuntu-odroid-c1-20150120.img.xz)
I then flashed the emmc, I then connected to hdmi/keyboard/mouse to configure (adduser, wifi, timezone, expand emmc)

I then decided that before I would use my own built version of the kernel, I did a: sudo apt-get update... upgrade... dist-upgrade

I shutdown and then removed the hdmi, mouse, keyboard (wish easy way to do the above headless especially wifi, but different subject)

I then first tried connecting it up to my linux machine, with screen to debug monitor and the monitor would startup and then stop working, could still ssh into it... Moved it over to windows machine with putty and same...
From Putty:
Code: Select all
QA5:A;SVN:B72;POC:17F;STS:0;BOOT:0;INIT:0;READ:41;READ:41;READ:0;CHECK:0;PASS:0;
-----------------------------------------------------------------------
* Welcome to Hardkernel's ODROID-C... (Built at 19:33:00 Dec  8 2014) *
-----------------------------------------------------------------------
CPU : AMLogic S805
MEM : 1024MB (DDR3@792MHz)
BID : HKC13C0001
S/N : HKC1CB0349B6897E
0x0000009f
Loading U-boot...success.


U-boot-00000-ge7d4447-dirty(odroidc@e7d4447d) (Jan 19 2015 - 03:09:01)

DRAM:  1 GiB
relocation Offset is: 2ff1c000
MMC:   eMMC: 0, SDCARD: 1
IR init is done!
vpu clk_level = 3
set vpu clk: 182150000Hz, readback: 182150000Hz(0x701)
mode = 6  vic = 4
set HDMI vic: 4
mode is: 6
viu chan = 1
config HPLL
config HPLL done
reconfig packet setting done
MMC read: dev # 0, block # 33984, count 12288 ... 12288 blocks read: OK
There is no valid bmp file at the given address
============================================================
Vendor: Man 110100 Snr 51566255 Rev: 3.2 Prod: 008G9
            Type: Removable Hard Disk
            Capacity: 7456.0 MB = 7.2 GB (15269888 x 512)
------------------------------------------------------------
Partition     Start Sector     Num Sectors     Type
    1                 3072          263168       6
    2               266240        15002625      83
============================================================
Net:   Meson_Ethernet
init suspend firmware done. (ret:0)
Hit Enter key to stop autoboot -- :  0
exit abortboot: 0
reading boot.ini

2290 bytes read
Loading boot.ini from mmc0:1 (vfat)
Executing the script...
setenv m "1080p"                # 1080P@60Hz
setenv vout_mode "hdmi"
setenv m_bpp "32"
setenv disableuhs "disableuhs"
setenv vpu "1"
setenv hdmioutput "1"
setenv condev "console=tty0"                    # on display (HDMI)
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro ${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs}"
fatload mmc 0:1 0x21000000 uImage
reading uImage

5381062 bytes read
fatload mmc 0:1 0x22000000 uInitrd
reading uInitrd

2113869 bytes read
fatload mmc 0:1 0x21800000 meson8b_odroidc.dtb
reading meson8b_odroidc.dtb

18090 bytes read
fdt addr 21800000
if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi
if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi
bootm 0x21000000 0x22000000 0x21800000"
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-3.10.66-46
   Image Type:   ARM Linux Kernel Image (lzo compressed)
   Data Size:    5380998 Bytes = 5.1 MiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 22000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    2113805 Bytes = 2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 21800000
   Booting using the fdt blob at 0x21800000
   Uncompressing Kernel Image ... OK
uboot time: 5211670 us.
Using machid 0xf81 from environment
From device tree /memory/ node aml_reserved_end property, for relocate ramdisk and fdt, relocate_addr: 0x520d001
   Loading Ramdisk to 05008000, end 0520c10d ... OK
   Loading Device Tree to 05000000, end 050076a9 ... OK

Starting kernel ...

From tail of dmesg:
Code: Select all
[  136.566606@2] [0x0] = 0x1dd0190
[  136.566611@2] [0x4] = 0xf800ca
[  136.566616@2] [0x8] = 0x82006e
[  136.566621@2] [0xc] = 0x3c0030
[  136.566625@2] [0x10] = 0x30fa0013
[  136.566630@2] [0x18] = 0x6f19000
[  136.566635@2] [0x1c] = 0x9f40
[  136.566639@2] [0x20] = 0x0
[  136.566644@2] [0x24] = 0x0
[  136.566649@2] [0x28] = 0x0
[  136.566654@2] set_remote_mode[65]
[  136.666241@2] init: auto-serial-console main process ended, respawning
[  136.713936@3] aml_audio_i2s_mute_flag: flag=0
[  136.713971@3] aml_spdif_unmute
[  136.807279@2] init: auto-serial-console main process ended, respawning
[  136.957489@0] init: auto-serial-console main process ended, respawning
[  137.046115@3] init: auto-serial-console main process ended, respawning
[  137.118177@3] init: auto-serial-console main process ended, respawning
[  137.177061@3] init: plymouth-stop pre-start process (1810) terminated with status 1
[  137.179804@3] init: auto-serial-console main process ended, respawning
[  137.243696@2] init: auto-serial-console main process ended, respawning
[  137.306751@2] init: auto-serial-console main process ended, respawning
[  137.353259@1] init: auto-serial-console main process ended, respawning
[  137.390986@1] init: auto-serial-console main process ended, respawning
[  137.430810@2] init: auto-serial-console respawning too fast, stopped

Kurt

Sorry, I am not getting the exact problem but guessing serial console problem. Please modify this in your boot.ini
Code: Select all
setenv condev "console=ttyS0,115200n8 console=tty0"
tobetter
 
Posts: 1974
Joined: Mon Feb 25, 2013 10:55 am
Location: Republic Of Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Ubuntu dist-upgrade problem

Unread postby KurtE » Fri Jan 30, 2015 8:01 am

tobetter wrote:Sorry, I am not getting the exact problem but guessing serial console problem. Please modify this in your boot.ini
Code: Select all
setenv condev "console=ttyS0,115200n8 console=tty0"

That does appear to help. The only issue now is that the stuff I am typing in putty is not echoing back, whereas it was before.

Kurt
KurtE
 
Posts: 217
Joined: Wed Jun 19, 2013 9:39 am
languages_spoken: english

Re: Ubuntu dist-upgrade problem

Unread postby robroy » Fri Jan 30, 2015 8:06 am

KurtE wrote:The only issue now is that the stuff I am typing in putty is not echoing back, whereas it was before.

Do you have duplex set to full?
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article | make a donation)
User avatar
robroy
 
Posts: 3284
Joined: Mon Feb 25, 2013 2:29 am
Location: San Francisco, California
languages_spoken: English
ODROIDs: Q2, X, X2, U2, U3, XU-E, XU3, XU4, C1, C1+, C2

Re: Ubuntu dist-upgrade problem

Unread postby KurtE » Fri Jan 30, 2015 8:18 am

I hate to act like an idiot here. How do I set these days. It was working great before, and is working fine with other putty windows going in through ssh connections.

It also echoed the first command I entered and then stopped. It is getting the keyboard input:
I look at stty and it shows echo:
Code: Select all
root@odroid:/# speed 115200 baud; line = 0;
min = 1; time = 0;
-brkint -imaxbel
-isig -icanon -iexten -echo
KurtE
 
Posts: 217
Joined: Wed Jun 19, 2013 9:39 am
languages_spoken: english

Re: Ubuntu dist-upgrade problem

Unread postby KurtE » Fri Jan 30, 2015 8:38 am

Quick update: I changed boot.ini again to the other option:
Code: Select all

# Default Console Device Setting
setenv condev "console=ttyS0,115200n8"        # on serial port
#setenv condev "console=tty0"                    # on display (HDMI)
#setenv condev "console=ttyS0,115200n8 console=tty0"   # on both

Appears to be working fine now!
Note: I am running my Odroid-c1 headless

Kurt
KurtE
 
Posts: 217
Joined: Wed Jun 19, 2013 9:39 am
languages_spoken: english

Re: Ubuntu dist-upgrade problem

Unread postby sasa » Sat Jan 31, 2015 2:40 am

For some unknown reason I can't reply on the post, anyways:

Thank you meveric very much, that worked, and I agree with you that it's a serious bug that needs to be fixed ASAP.
sasa
 
Posts: 10
Joined: Thu Jan 29, 2015 7:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu dist-upgrade problem

Unread postby meveric » Sat Jan 31, 2015 6:44 am

i informed mdrjr on 05.01. about it.. i guess it got lost in the tasks he has to do... but it's really easy to fix as you see..
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 6482
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Ubuntu dist-upgrade problem

Unread postby mdrjr » Sat Jan 31, 2015 6:49 am

Next kernel upgrade will have it :(

I'll push it today :)
mdrjr
Site Admin
 
Posts: 11552
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu dist-upgrade problem

Unread postby sasa » Sat Jan 31, 2015 6:59 am

One quick question,

How can you change what kernel does the board boot?

My problem is that in kernel linux-image-3.10.64-37 I don't have nf_conntrack modules, so my iptables aren't working, but kernel linux-image-3.10.66-46 has them (under /lib/modules/.../kernel/net...) ,

So how to boot 3.10.66 kernel or how to update modules in the existing one,

I've already tried executing insmod from 3.10.66 kernel, but they aren't compatible, so that wasn't working, I've also tried installing linux-headers and that didn't updated the modules.

Thank you in advance.
sasa
 
Posts: 10
Joined: Thu Jan 29, 2015 7:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu dist-upgrade problem

Unread postby meveric » Sat Jan 31, 2015 7:08 am

normally you only need to install the kernel 3.10.66 it should automatically create the additional files needed to boot the image with that modules.. if it still boots 3.10.64 apply the fix i showed you earlier and than do an apt-get install --reinstall linux-image-3.10.66-46
that "should" fix it.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 6482
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Ubuntu dist-upgrade problem

Unread postby sasa » Sat Jan 31, 2015 8:12 am

It's still booting 3.10.64-37.
sasa
 
Posts: 10
Joined: Thu Jan 29, 2015 7:03 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu dist-upgrade problem

Unread postby mdrjr » Sat Jan 31, 2015 12:17 pm

There's an issue with the minimal image...

The /media/boot partition isn't booted. That is causing errors as well.

Before running apt-get dist-upgrade please do:
mount /dev/mmcblk0p1 /media/boot
mdrjr
Site Admin
 
Posts: 11552
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu dist-upgrade problem

Unread postby mdrjr » Sat Jan 31, 2015 1:26 pm

Also in about 1 hour or so.. I'll have a new image updated that fixes this issue.

If you want just to patch your image.. Use the step 11 on the Wiki for the minimal image.
http://odroid.com/dokuwiki/doku.php?id= ... tu_minimal
mdrjr
Site Admin
 
Posts: 11552
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu dist-upgrade problem

Unread postby sasa » Sat Jan 31, 2015 7:16 pm

Everything is working now, I'm glad that I've contributed to this project, only if reporting problems.

Thank you all once again,
Sasa.
sasa
 
Posts: 10
Joined: Thu Jan 29, 2015 7:03 am
languages_spoken: english
ODROIDs: C1


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests