SliTaz SliTaz Forum

You are not logged in.

#1 2014-11-05 10:18:27

tiziano
Member
Registered: 2014-09-09
Posts: 92

slitaz on raspberry pi

I'm running my raspberry pi with raspbian. it is ok but quite slow.

I want to try tazberry on it. I think it can perform better. Writing an SD card with raspbian is kind of easy job. Either NOOBS or berryboot are helpful on it. I'm getting into troubles with the slitaz distribution instead.

Following the instructions given online I did:

1. download the tarballs slitaz-rpi-base-20140329 - slitaz-rpi-desktop-20140329 - extract in my home directory -

2. partitioned my SD card into 3 parts: 40Mb FAT32 for boot - 420Mb for swap ext4 - all available free space for root ext4 - 

How do I shall go now from this point on?  Don't know how to write my SD card.

when do I need to follow the  "Then you simply have to run the install.sh script from the SliTaz Raspberry Pi release directory:

[c]# ./install.sh[/c]"

what is meant with SliTaz Raspberry Pi release directory?

Can anybody help me in this - may be stupid - issue?

Offline

#2 2014-11-05 12:30:36

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: slitaz on raspberry pi

Cd to the same directory as the release archive.

Extract the release archive:

[c]tar xvf slitaz-rpi-desktop-20140329.tar.bz2[/c]

Cd into the extracted Slitaz Raspberry Pi release directory:

[c]cd slitaz-rpi-desktop-20140329[/c]

Read the README:

[c]less README[/c]

Execute the install script:

[c]./install.sh[/c]

Online

#3 2014-11-05 21:34:56

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

fine so far but unfortunately got following reply:

[c]bash: ./install.sh: Permission denied[/c]

Offline

#4 2014-11-05 21:51:02

tony
Member
Registered: 2014-08-23
Posts: 12

Re: slitaz on raspberry pi

Well, it looks that you have to run the shell script as root.

Tiziano; Just curious. Which pi do you have? the A,the B or the B+. I'm thinking to buy one in the future and I would like to know how fast it runs with slitaz.

Also I would like to use and old crt tv with an rca connector. What can of gui can you run with this kind of tv and how is the quality of the display?

It would be nice if you give your opinion to the forum if successful in your installation.

Thanks

Offline

#5 2014-11-05 23:26:24

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: slitaz on raspberry pi

# symbol before ./install.sh in the README indicates the command is run as root.

Problem is most newbies think the # is part of the command syntax.

Slitaz:

root user command prompt=> root@slitaz:/home/tux#

regular user prompt=> tux@slitaz:~$

root=> #

regular user=> $

Online

#6 2014-11-06 06:56:58

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

thanks mojo for explanation - still I was using a machine with Debian and I got same reply either if I use just regular terminal i.e. $ + sudo in front of the command (without #) or on a su terminal i.e. #  -  I doubted if my user name isn't in the sudoers group so I did use 'adduser' but it didn't work either.. 

I have a MAC as well so I tested if I could do it from there - no way - apparently it does accept 'fdisk' somehow but it works with 'df -h' command instead and it stops before installing process saying:

-e SliTaz Raspberry Pi Installation

================================================================================

Before processing please read the SliTaz ARM/RPi installation howto on:

  http://arm.slitaz.org/rpi

-n SD card disk name (ex sdc):

disk2s1

fdisk: illegal option -- l

usage: fdisk [-ieu] [-f mbrboot] [-c cyl -h head -s sect] [-S size] [-r] [-a style] disk

    -i: initialize disk with new MBR

    -u: update MBR code, preserve partition table

    -e: edit MBRs on disk interactively

    -f: specify non-standard MBR template

    -chs: specify disk geometry

    -S: specify disk size

    -r: read partition specs from stdin (implies -i)

    -a: auto-partition with the given style

    -d: dump partition table

    -y: don't ask any questions

    -t: test if disk is partitioned

`disk' is of the form /dev/rdisk0.

auto-partition styles:

  boothfs     8Mb boot plus HFS+ root partition (default)

  hfs         Entire disk as one HFS+ partition

  dos         Entire disk as one DOS partition

  raid        Entire disk as one 0xAC partition

Unable to find: /dev/disk2s13

finally had and old pc with slitaz 4.0 but unfortunately on this machine do not have an SD card slot available nor an external card reader

Offline

#7 2014-11-07 06:35:59

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

@mojo

did run installation script doing ˆsudo bash install.shˆ - installation started and after recognize sd card it found an error in copying some files - even if script at the end says to boot the raspberry it goes into ˆpanicˆ

1. SC card formatted as follow  40mb fat32  boot - 420 mb swap linux - rest (some 6.. Gb) rootfs ext4

2. execution done in a debian environment

what's wrong?

Offline

#8 2014-11-07 12:43:50

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: slitaz on raspberry pi

I think, you on the correct way - there was just an error writing to the sd-card

Maybe try it another time, maybe it works (I found some reports, that the writing to the sd-card is sometimes problematic)

if the problem continues, try to find a machine, where you can do the same thing from SliTaz (I use the Hama USB 2.0 35 in 1 card reader)

Offline

#9 2014-11-07 14:56:53

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: slitaz on raspberry pi

@tiziano

See this: http://forum.slitaz.org/topic/still-wont-boot-pi-f2fs-message#post-31165

If install.sh doesn't run without errors, open it up in a text reader and use it as instructions for a manual install.

Online

#10 2014-11-14 11:07:43

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

@mojo

sorry for bothering you again but please see screenshot refering to running install.sh suggested in your linked post -

1.

Offline

#11 2014-11-14 11:16:23

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

1. install.sh worked fine but when booted on the pi got -

[c]EXT4-fs (mmcblk0p3): couldn't mount as etx3 due to feature incopatibilities
EXT4-fs (mmcblk0p3): couldn't mount as etx2 due to feature incopatibilities
kernel panic - not syncing: No init found. try passing init= option to kernel. see linux documentation/init.txt for guidance[/c]
2. manual installation - same results

what's wrong? [attachment=34680,1738]

Offline

#12 2014-11-14 19:02:36

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: slitaz on raspberry pi

Hi,

Yesterday I kicked my very first sltaz-arm into life. There are quite a few similarities with the problems you seem to have. What I noticed first of all is that the order of the partitions is mandatory (not mentioned explicitly in the readme).

The other issue is how to correctly format your SD card with three partitions. Honestly, I cannot describe how I got to a working setup but eventually I did. ;-) As with every first time experience, you learn valuable lessons which are potentially useful to others. What I will do is start again from scratch and document each step, using a raspberry Pi and a USB card reader.

fdisk is the tool of choice and many information about how to get on with it can be found here: http://tldp.org/HOWTO/Partition/fdisk_partitioning.html

Until I get to write up the documentation, this is the resource to go to.

Goodluck!

/emgi

Offline

#13 2014-11-14 20:09:04

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: slitaz on raspberry pi

According to Slitaz PiBook /dev/sda3 which has the rootfs must be ext4 filesystem.

[c]EXT4-fs (mmcblk0p3): couldn't mount as etx3 due to feature incopatibilities[/c]

seems to indicate /dev/sda3 was formated as ext3 filesystem which will not work.

Output from [c]blkid[/c] will identify specific filesystem on each partition.

Open terminal,login as root.

[c]blkid[/c]

Online

#14 2014-11-14 21:22:31

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: slitaz on raspberry pi

The partioning link in my previous post also shows how to make the partions exactly matching the beginning & end of a cylinder. Calculation for yor specific SD card:

Block size (1 cylinder = 247 heads * 62 sectors * 512 bytes/sector = 7840768 bytes equals 7657kB.

So your in order to match the SD geometry, the partion sizes must be multiples of 7657kB.

For /boot you could use 5 cylinders for 38,285MB. Based on what's used on my /boot, I believe that's plenty. Then go on and calculate the exact size of swap in the same way.

Dividing the recommended 420MB by 7,657 gives 56,1 cylinders which I would round down to 56 for a swap of 428.792kB.

Then the / partition will simply get what's left on the card. (a lot)

This should help you to get rid of the messages regarding beginnings and ends of partitions not matching cylinder boundaries.

/emgi

Offline

#15 2014-11-15 13:20:54

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

did card partition with Gparted with corrected rootfs partiton ext-4 and run install.sh same as above - did then new partition how emgi suggested fdisk hopefully correct  nevertheless neither first nor second option worked -

first went as usual successful then panic at rpi boot - second got an error message -

[attachment=34700,1740]

Offline

#16 2014-11-15 17:18:33

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: slitaz on raspberry pi

Partition type for /boot must be 'c' instead of 'b'.

At least that is what works for me...

/emgi

Offline

#17 2014-11-16 11:10:16

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

changed partition with 'c' - same problem -   I'm really ....

[attachment=34717,1742]

Offline

#18 2014-11-16 12:12:12

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

Hi Paul

thanks for your hint -unfortunately I'm a newbie and I don'to even know what hacking a script does mean - I did try a manual installation checking into the istall.sh script and trying to repeat the commands on a terminal as I mentioned in a previous mail with no result as well - I'm really pissed because if it goes like this I'm going to get frustated and abandon my intention to test slitaz in my rpi which is a pity cause I'm using it in one of my old pc and it runs fast and flawless - honestly no comparison with other more famous linux distribution....

Offline

#19 2014-11-16 12:45:47

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

Hi Paul

thanks for your hint -unfortunately I'm a newbie and I don'to even know what hacking a script does mean - I did try a manual installation checking into the istall.sh script and trying to repeat the commands on a terminal as I mentioned in a previous mail with no result as well - I'm really pissed because if it goes like this I'm going to get frustated and abandon my intention to test slitaz in my rpi which is a pity cause I'm using it in one of my old pc and it runs fast and flawless - honestly no comparison with other more famous linux distribution....

Offline

#20 2014-11-16 13:05:41

linea
Administrator
Registered: 2011-03-31
Posts: 70

Re: slitaz on raspberry pi

Hi tiziano

I think I confused myself (that's why I deleted the post)

Are you using a card slot or a card reader?

Basically I partitioned my SD and hacked the install.sh using an internal card slot on a Debian based system where the card showed up as: /dev/mmcblk0

Though it looks like your card shows up as /dev/sda on slitaz

Offline

#21 2014-11-16 15:56:35

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

Actually I'm using a card reader in a SliTaz environment - tested also debian with a card slot with no success either - with debian though

Only used Gparted instead of fdisk in order to partiton SD card but I think it doesn't matter in the end. Only the /dev name changes... Isn't it?

Offline

#22 2014-11-16 16:10:10

linea
Administrator
Registered: 2011-03-31
Posts: 70

Re: slitaz on raspberry pi

Hi tiziano

OK, go back to your Debian system with a card slot (and Gparted) and run:

$ sudo fdisk -l

And post the results.

Hopefully it should look something like this:

/dev/mmcblk0p1   *          63       96389       48163+   b  W95 FAT32

/dev/mmcblk0p2           96390      931769      417690   82  Linux swap / Solaris

/dev/mmcblk0p3          931770    62332199    30700215   83  Linux

Offline

#23 2014-11-16 16:20:19

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: slitaz on raspberry pi

Something goes wrong while mounting the SD card.

What error message do you get when you try to mount /dev/sda1 manually?

Syntax: mount /dev/sda1 -t vfat

Perhaps the partion is not formatted?

Try to format it using mkfs.vfat -F 32 /dev/sda1

(I did the formatting om my windows PC so the above is untested.)

/emgi

Offline

#24 2014-11-16 18:29:13

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

@emgi

first - I'd like to thank you for the useful information you posted - particularly appreciated by a newbie like me

second - see what I got by typing your latest commands

[attachment=34731,1744]

Offline

#25 2014-11-16 18:36:32

tiziano
Member
Registered: 2014-09-09
Posts: 92

Re: slitaz on raspberry pi

@Paul

here you go

[attachment=34732,1745]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]