william@beaglebone:~$ *ls /boot/*
SOC.sh                         config-3.8.13-bone70
initrd.img-3.8.13-bone70          uboot
System.map-3.8.13-bone70       config-4.1.12-bone-rt-r16
initrd.img-4.1.12-bone-rt-r16     vmlinuz-3.8.13-bone70
System.map-4.1.12-bone-rt-r16  config-4.1.14-bone-rt-r17
initrd.img-4.1.14-bone-rt-r17     vmlinuz-4.1.12-bone-rt-r16
System.map-4.1.14-bone-rt-r17  config-4.1.9-bone-rt-r16
initrd.img-4.1.9-bone-rt-r16.bak  vmlinuz-4.1.14-bone-rt-r17
System.map-4.1.9-bone-rt-r16   dtbs
uEnv.txt                          vmlinuz-4.1.9-bone-rt-r16

Yeah, look at that mess hah ! Ok, so attempting apt-get remove.

william@beaglebone:~$ *sudo apt-get remove --purge
linux-image-4.1.12-bone-rt-r16*
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-4.1.12-bone-rt-r16*
0 upgraded, 0 newly installed, 1 to remove and 44 not upgraded.
After this operation, 67.1 MB disk space will be freed.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 28939 files and directories currently installed.)
Removing linux-image-4.1.12-bone-rt-r16 ...
update-initramfs: Deleting /boot/initrd.img-4.1.12-bone-rt-r16
Purging configuration files for linux-image-4.1.12-bone-rt-r16 ...

william@beaglebone:~$ *ls /boot/*
SOC.sh                         config-3.8.13-bone70
initrd.img-3.8.13-bone70          uboot
System.map-3.8.13-bone70       config-4.1.14-bone-rt-r17
initrd.img-4.1.14-bone-rt-r17     vmlinuz-3.8.13-bone70
System.map-4.1.14-bone-rt-r17  config-4.1.9-bone-rt-r16
initrd.img-4.1.9-bone-rt-r16.bak  vmlinuz-4.1.14-bone-rt-r17
System.map-4.1.9-bone-rt-r16   dtbs
uEnv.txt                          vmlinuz-4.1.9-bone-rt-r16

Yeap, all gone.

On Thu, Apr 7, 2016 at 3:46 PM, William Hermans <yyrk...@gmail.com> wrote:

> Robert,
>
> Your linux-images packages clean up after themselves if running sudo
> apt-get remove --purge on old unwanted images ?
>
> I can't recall doing this, but perhaps I should have been doing things
> this way as it's much easier. I do recall using rm -rf on a couple
> occasions however . . .
>
> On Thu, Apr 7, 2016 at 3:41 PM, William Hermans <yyrk...@gmail.com> wrote:
>
>> william@beaglebone:~$ *apt-cache search linux-image |grep 4.1*
>>
>> Too much output here to view. Narrow search parameters assuming I want a
>> *bone* kernel, and not ti kernel.
>>
>> william@beaglebone:~$ *apt-cache search linux-image |grep 4.1*bone**
>> linux-image-4.0.4-bone4 - Linux kernel, version 4.0.4-bone4
>> linux-image-4.1.14-bone-rt-r17 - Linux kernel, version 4.1.14-bone-rt-r17
>> linux-image-4.1.14-bone17 - Linux kernel, version 4.1.14-bone17
>> linux-image-4.1.4-bone15 - Linux kernel, version 4.1.4-bone15
>> linux-image-4.2.4-bone2 - Linux kernel, version 4.2.4-bone2
>> linux-image-4.3.4-bone4 - Linux kernel, version 4.3.4-bone4
>> linux-image-4.5.0-rc4-bone2 - Linux kernel, version 4.5.0-rc4-bone2
>>
>> Much more manageable, now I just need to pick one. In this case, let's
>> assume I want the latest rt image.
>>
>> william@beaglebone:~$ *sudo apt-get install
>> linux-image-4.1.14-bone-rt-r17*
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Suggested packages:
>>   linux-firmware-image-4.1.14-bone-rt-r17
>> The following NEW packages will be installed:
>>   linux-image-4.1.14-bone-rt-r17
>> 0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
>> Need to get 26.0 MB of archives.
>> After this operation, 64.8 MB of additional disk space will be used.
>> Get:1 http://repos.rcn-ee.com/debian/ wheezy/main
>> linux-image-4.1.14-bone-rt-r17 armhf 1wheezy [26.0 MB]
>> Fetched 26.0 MB in 1min 13s (353 kB/s)
>> perl: warning: Setting locale failed.
>> perl: warning: Please check that your locale settings:
>>         LANGUAGE = (unset),
>>         LC_ALL = (unset),
>>         LANG = "en_US.UTF-8"
>>     are supported and installed on your system.
>> perl: warning: Falling back to the standard locale ("C").
>> locale: Cannot set LC_CTYPE to default locale: No such file or directory
>> locale: Cannot set LC_MESSAGES to default locale: No such file or
>> directory
>> locale: Cannot set LC_ALL to default locale: No such file or directory
>> Selecting previously unselected package linux-image-4.1.14-bone-rt-r17.
>> (Reading database ... 26266 files and directories currently installed.)
>> Unpacking linux-image-4.1.14-bone-rt-r17 (from
>> .../linux-image-4.1.14-bone-rt-r17_1wheezy_armhf.deb) ...
>> Setting up linux-image-4.1.14-bone-rt-r17 (1wheezy) ...
>> update-initramfs: Generating /boot/initrd.img-4.1.14-bone-rt-r17
>> zz-uenv_txt: Updating /boot/uEnv.txt [uname_r=4.1.14-bone-rt-r17]
>>
>> After which we need to reboot. But first. Let's confirm we're not already
>> using that kernel.
>>
>> william@beaglebone:~$ *uname -r*
>> 4.1.12-bone-rt-r16
>> william@beaglebone:~$ *sudo reboot*
>>
>> Broadcast message from root@beaglebone (pts/0) (Thu Apr  7 15:37:25
>> 2016):
>> The system is going down for reboot NOW!
>>
>> Log in after reboot . . .
>>
>> william@beaglebone:~$ *uname -r*
>> 4.1.14-bone-rt-r17
>>
>> Also keep in mind that the old kernel is still in place, and in fact can
>> be set to be the boot kernel again by making a single modification to one
>> file. So, if in fact you're done with the old kernel, it may behoove you to
>> remove it least it clogs of your storage, and you soon run out of room.
>>
>> On Thu, Apr 7, 2016 at 5:10 AM, Virendra <ardner...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have built a custom image (kernel_version=4.1.20) in SD card from
>>> Robert Nelson.
>>>
>>> The current kernel version seems to be 4.5. How to upgrade from 4.1 to
>>> 4.5 without reflashing the SD card image.
>>> The custom kernel upgrade should be downloaded from the local network
>>> and not using apt-get.
>>> Any pointers how to do the upgrade from the existing image without
>>> reflashing the sdcard will be helpful.
>>>
>>> Thanks,
>>> Veera
>>>
>>> --
>>> For more options, visit http://beagleboard.org/discuss
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "BeagleBoard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to beagleboard+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to