Tiny Core Base > Raspberry Pi

Getting started for a noob(ish)

(1/1)

richiec:
Hi all,

I recently got tiny core linux going on a pi zero w with ethernet and wireless networking. The learning curve was quite steep for someone who's basically a software engineer who doesn't think about the OS or hardware too much. I've documented how someone like me can go from "what to buy" to "thank goodness it now actually works".

https://medium.com/@crichiec/pi-zero-w-tinycore-linux-03966f17d2ec

happy for comments and feedback, or if people find it useful, please share. If there's anything I've screwed up / could make better, please let me know and I'll edit the article.

Best wishes,

Richard

Juanito:
When you download the extensions to the usb stick you need *.tcz, *.tcz.dep (not always present) and *.tcz.md5.txt.

To avoid having to type, for example, net-usb-6.6.47-piCore-v7.tcz, you can use net-usb-KERNEL.

If you have already copied the downloaded extensions to the SD card, you can load them with “tce-load -i”.

Rich:
Hi richiec
Welcome to the forum.

Just a few thoughts ...


--- Quote --- ... TinyCore Linux is well suited to this, but it is far from easy to get working beyond ls working at the command line. This isn’t a tutorial on TinyCore itself — there are many introductions out there ...
--- End quote ---
Speaking of which, there used to be 2 files (IMPORTANT and README) in
the releases section that never got carried forward after TC12:
http://tinycorelinux.net/12.x/armv6/releases/RPi/


--- Quote --- ... but as we’ll see the partition resize process is destructive. ...
--- End quote ---
I was under the impression resizing could be done non-destructively
using the instructions in README at the above link:

--- Quote --- ... 2) Delete second partition with 'd' than recreate it with 'n' command.
   Use the same starting sector as deleted had and provide end
   sectore or size greater than deleted had having enough free space
   for Mounted Mode. When finished, exit fdisk with 'w' command. Now
   partition size increased but file system size is not yet changed.

3) Reboot piCore. It is necessary to make Kernel aware of changes.

4) After reboot expand file system to the new partition boundaries with
   typing the following command as root:

   resize2fs /dev/mmcblk0p2

Now you are ready to use the bigger partition. ...
--- End quote ---


--- Quote --- ... sudo reboot ...
--- End quote ---
That should be:

--- Code: ---exitcheck.sh reboot
--- End code ---
or if you want to shutdown (poweroff):

--- Code: ---exitcheck.sh
--- End code ---
exitcheck ensures an orderly shutdown/reboot sequence:

--- Code: ---exitcheck.sh reboot -> /opt/shutdown.sh -> /sbin/reboot -> /etc/inittab -> /etc/init.d/rc.shutdown
--- End code ---

Then /etc/init.d/rc.shutdown performs the following:

--- Code: ---1. Sync filesystems
2. Disable swap space
3. Kill all processes
4. Unmount all extensions
5. Delete extensions being updated
6. Unmount tce directory
7. Unmount backup directory
8. Unmount everything else
--- End code ---

If you are running command line only (no GUI) and want backups
run automatically when rebooting/shutting down, see here:
https://forum.tinycorelinux.net/index.php/topic,24013.msg151369.html#msg151369


--- Quote --- ... There’s in fact no easy way of determining what the actual device is other than trying to mount it and seeing if your files show up. Here’s one way I narrowed it down a bit:

dmesg | grep sda ...
--- End quote ---
Run:

--- Code: ---dmesg | tail
--- End code ---
Then plug in your device and run:

--- Code: ---dmesg | tail
--- End code ---
Your device will be the new dmesg entries. If there are no new
dmesg entries, your device was not recognized.


--- Quote --- ... What you’re looking for is an sda number (which might be none — my USB stick got mounted just as sda ). ...
--- End quote ---
The last couple of lines should look something like this:

--- Code: ---tc@E310:~$ dmesg | tail
 ----- Snip -----
[18036149.154763]  sdg: sdg1 sdg2
[18036149.157639] sd 7:0:0:0: [sdg] Attached SCSI removable disk
tc@E310:~$
--- End code ---
The device in this example is sdg and it has 2 partitions, sdg1 and sdg2.


--- Quote --- ... tce-load -i dhcpcd.tcz firmware-rpi-wifi.tcz net-usb-6.6.47-piCore-v7.tcz ...
--- End quote ---
You can also do it like this:

--- Code: ---tce-load -i dhcpcd firmware-rpi-wifi net-usb-6.6.47-piCore-v7
--- End code ---
tce-load will work with or without the .tcz extension specified.

Typo:

--- Quote --- ... Edit the /etc/resolv.conf file and add a DNS server, which for me is simply my router of 192.168.1.1:

nameserver 193.168.1.1 ...
--- End quote ---
Should read:

--- Quote --- ... Edit the /etc/resolv.conf file and add a DNS server, which for me is simply my router of 192.168.1.1:

nameserver 192.168.1.1 ...
--- End quote ---


--- Quote --- ... ifconfig up eth0 ...
--- End quote ---
You need root permissions to run that

--- Code: ---sudo ifconfig up eth0
--- End code ---


richiec:
Thank you for the comprehensive evaluation (genuinely). I’ll edit these in some time iver the weekend which will obviously lift the quality of the article significantly and ease some folk’s first experiences,

Many thanks

Richard

Navigation

[0] Message Index

Go to full version