Skip to content

Instantly share code, notes, and snippets.

@kekyo
Last active April 20, 2022 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kekyo/1d851907bf5b59ddb204448de3b18383 to your computer and use it in GitHub Desktop.
Save kekyo/1d851907bf5b59ddb204448de3b18383 to your computer and use it in GitHub Desktop.
How to update latest packages on Imagination Creator CI20 Debian 8 (jessie)

How to update latest packages on Imagination Creator CI20 Debian 8 (jessie)

Imagination Creator CI20 board: A MIPS32 architecture evaluation board.

Imagination Creator CI20 board


1. Install Debian 8 beta image onto Imagination Creator CI20

  • Image file: Debian 8 2016-02-02 Beta (nand_2016_06_02.img) This site is unstable, so get it as soon as you notice it.
  • You can write image file into SD card with Raspberry Pi Imager when using Windows (Tested 2022/04/05).
  • NOTE: The CI20 upgrade image installation takes quite a while. In my experience, it takes about 10 minutes. After changing the jumper to SD card boot and booting, the LED glows BLUE. At this point, nothing happens for about 10 minutes, but please wait. When the installation is finished, the LED will turn RED. Then disconnect power, remove the SD card, put the jumper back on (remember!) Power on. You should now be able to upgrade.

2. Change APT source list

  • Edit /etc/apt/source.list
# 1. Commented out ALL default sources.
#deb http://ftp.uk.debian.org/debian jessie main contrib non-free
#...
#...
#...

# 2. Add jessie archive sources.
deb http://archive.debian.org/debian/ jessie main contrib non-free
deb http://archive.debian.org/debian/ jessie-backports main contrib non-free
  • And you have to comment out on flowsdk.list too.

3. Update

  • (Optional) Expand swap space, because significant package updates may result in lacked memory spaces.
dd if=/dev/zero of=/mnt/swapfile bs=1m count=1024
mkswap /mnt/swapfile
chmod 600 /mnt/swapfile
swapon /mnt/swapfile
  • (Optional) Maybe better for moving apt cache from root ubifs to externa (SD card) file system:
cd /var/cache
cp -R apt/ /mnt/
mv apt apt.orig
ln -s /mnt/apt apt
  • (Optional) Maybe makes stable with cleaning apt cache.
apt clean
  • Do update with ignoring out-of-dated packages:
apt -o Acquire::Check-Valid-Until=false update
  • Then:
apt upgrade

Enjoy! I'd be happy to write something about how it worked out :)

If you are interested in developing mipsel architecture, here is also a good place to start.

@cellularmitosis
Copy link

Excellent!

@kekyo
Copy link
Author

kekyo commented Apr 6, 2022

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment