Page 1 of 2

Re: Greetings from standalone Raspberry Pi

Posted: Wed Apr 04, 2012 2:23 pm
by alanyih
Greetings from standalone Raspberry Pi

1. slitaz_emergency.img is based on kernel_emergency.img
Additional files supplied by the foundation
http://elinux.org/RPi_Advanced.....foundation

kernel_emergency.img : kernel with busybox rootfs. You can use this to repair the main linux partition using e2fsck if the linux partition gets corrupted.

2. download
# wget http://dl.dropbox.com/u/102419.....rgency.img (5.2M)

3. boot
# qemu-system-arm -m 256 -M versatilepb -cpu arm1176 -kernel slitaz_emergency.img &


Re: Greetings from standalone Raspberry Pi

Posted: Thu Apr 05, 2012 8:30 am
by alanyih
# uname -a
Linux raspberrypi 3.1.9-slitaz #1 Wed Apr 4 15:55:17 UTC 2012 armv6l GNU/Linux

# du -sh /
6.5M    /

# nslookup http://www.raspberrypi.org
Server:    10.0.2.3
Address 1: 10.0.2.3

Name:      http://www.raspberrypi.org
Address 1: 93.93.128.176 http://www.raspberrypi.org
Address 2: 2a00:1098:0:80:1000:13:0:2

# busybox | head -1
BusyBox v1.18.4 (2012-04-04 05:58:32 UTC) multi-call binary.

# tazpkg | head -4
SliTaz packages manager - Version: 2.3

Usage: tazpkg [command] [package|dir|pattern|list|cat|--opt] [dir|--opt]
tazpkg shell

About SliTaz
http://www.slitaz.org/

SliTaz is an open source and free operating system providing a fully featured desktop or server in less than 35 MB. SliTaz is simple to use, fast and stable.

Re: Greetings from standalone Raspberry Pi

Posted: Thu Apr 05, 2012 8:30 am
by alanyih
# uname -a
Linux raspberrypi 3.1.9-slitaz #1 Wed Apr 4 15:55:17 UTC 2012 armv6l GNU/Linux

# du -sh /
6.5M    /

# nslookup "www.raspberrypi.org"
Server:    10.0.2.3
Address 1: 10.0.2.3

Name:     "www.raspberrypi.org"
Address 1: 93.93.128.176 "www.raspberrypi.org"
Address 2: 2a00:1098:0:80:1000:13:0:2

# busybox | head -1
BusyBox v1.18.4 (2012-04-04 05:58:32 UTC) multi-call binary.

# tazpkg | head -4
SliTaz packages manager – Version: 2.3

Usage: tazpkg [command] [package|dir|pattern|list|cat|--opt] [dir|--opt]
tazpkg shell

About SliTaz
http://www.slitaz.org/

SliTaz is an open source and free operating system providing a fully featured desktop or server in less than 35 MB. SliTaz is simple to use, fast and stable.

Re: Greetings from standalone Raspberry Pi

Posted: Sat Apr 07, 2012 7:58 am
by alanyih
rcS

1.
# ls -l /etc/init.d
total 12
-rwxrwxr-x    1 0        0              986 Apr  4  2012 rcS
-rwxrwxr-x    1 0        0              599 Mar 27  2012 rcS~
-rwxrwxr-x    1 0        0             1200 Mar 27  2012 vchiq

2.
# cat /etc/init.d/rcS
#! /bin/sh

/bin/mount -a
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 10.0.2.15 up
/sbin/route add default gw 10.0.2.2
/bin/hostname raspberrypi

echo /sbin/mdev > /proc/sys/kernel/hotplug
# /sbin/mdev -s

/sbin/syslogd    # circular buffer – use logread to read
/sbin/klogd      # log kernel messages – also available in dmesg

# load kernel modules listed in /etc/modules
if [ -r /etc/modules ]; then
while read mod; do
modprobe $mod
done < /etc/modules
fi

# create vchiq device
# [ -x /etc/init.d/vchiq ] && /etc/init.d/vchiq start

echo
echo Greetings from standalone Raspberry Pi
echo

if [ -f /proc/cmdline -a -x /usr/local/bin/rpitestmode.sh ]; then
if grep rpitestmode /proc/cmdline > /dev/null; then
# wait for USB ennumeration to finish – otherwise test will fail
sleep 3
/usr/local/bin/rpitestmode.sh
fi
fi

# use an artificial SysRq-g to interrupt
# echo Attempting to enter the debugger! ….
# echo g > /proc/sysrq-trigger

Re: Greetings from standalone Raspberry Pi

Posted: Sat Apr 07, 2012 11:14 am
by toxibunny
Zounds! What manner of wizardry is this?

Re: Greetings from standalone Raspberry Pi

Posted: Sat Apr 07, 2012 3:07 pm
by alanyih
toxibunny said:


Zounds! What manner of wizardry is this?



# diff rcS-orig rcS
--- rcS-orig
+++ rcS
@@ -1,11 +1,15 @@
#! /bin/sh

/bin/mount -a
+/sbin/ifconfig lo 127.0.0.1
+/sbin/ifconfig eth0 10.0.2.15 up
+/sbin/route add default gw 10.0.2.2
+/bin/hostname raspberrypi

echo /sbin/mdev >/proc/sys/kernel/hotplug
-#/sbin/mdev -s
+# /sbin/mdev -s

-/sbin/syslogd -C # circular buffer - use logread to read
+/sbin/syslogd    # circular buffer - use logread to read
/sbin/klogd      # log kernel messages - also available in dmesg

# load kernel modules listed in /etc/modules
@@ -16,7 +20,8 @@
fi

# create vchiq device
-[ -x /etc/init.d/vchiq ] && /etc/init.d/vchiq start
+# [ -x /etc/init.d/vchiq ] && /etc/init.d/vchiq start
+
echo
echo Greetings from standalone Raspberry Pi
echo

Re: Greetings from standalone Raspberry Pi

Posted: Sat Apr 07, 2012 3:13 pm
by SN
Eh? Why does this thread consist entirely of shell script?

Re: Greetings from standalone Raspberry Pi

Posted: Sat Apr 07, 2012 3:31 pm
by toxibunny
Something wonderful has happened ... :O

Re: Greetings from standalone Raspberry Pi

Posted: Sat Apr 07, 2012 3:43 pm
by SN
Is this even smaller than DSL?

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 2:49 pm
by alanyih
SN said:


Is this even smaller than DSL?



1.
SliTaz 4.0 RC3 is out — 18 Mar 2012 (34.5M)
http://mirror.slitaz.org/iso/c......0-RC3.iso

2.
# df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   451.6M    128.2M    323.5M  28% /
tmpfs                   250.9M         0    250.9M   0% /dev/shm

3.
# free -m
total         used         free       shared      buffers
Mem:           501          167          333            0            0
-/+ buffers:                167          333
Swap:            0            0            0

4..
SliTaz 4.0 Releases Notes (draft)
http://doc.slitaz.org/relnotes

Overview/ChangeLog

Welcome to SliTaz 4.0! Modern, secure, stable, fast and flexible the new SliTaz stable version is now out for Desktops and servers in production use.

More than 6500 commits in the wok
More than 1000 packages added to database
Boot in 10 seconds [or less?] on a very recent machine
Centralized configuration with the new control panel
New build tool which lets you create SliTaz packages in a minute
New rolling release ISO is built after each package cook
New installer


Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 3:42 pm
by abishur
@alanyih

While I certainly don't want to squash creativity, you're posts to the board thus far have been boarder-line spam.  Please provide more information on what exactly your script does and how it relates to the R-Pi without the scripts or I will assume this is an automated account and take the appropriate action.

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 4:04 pm
by tufty
Boarder :

Border :


Just noticed your .sig. woops.

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 4:09 pm
by pepedog
I"m finding it quite interesting, even though I did quite similar 2 days before 1st post in this thread, and Dom must have done it months ago.
Short version, you make a working busybox system using about 5 files from firmware, all just using Windows only, and the card could even be fat16. The thread then builds on customising. I was thinking along same lines.

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 5:08 pm
by hippy
pepedog said:


Short version, you make a working busybox system using about 5 files from firmware, all just using Windows only, and the card could even be fat16. The thread then builds on customising. I was thinking along same lines.


Sounds great and probably is fantastic, but I found the OP's post typical of a lot of Linux information I see; if you have the prerequisite understanding it may make sense but if you don't you simply end up on the outside looking in without a clue.

Hopefully, in the spirit of learning which the R-PI represents, we can break free of that culture, put more meat on the bone to help those who currently can't as well as those who already can.

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 5:39 pm
by jamesh
I'm not a beginner. and I have NO IDEA what this thread is about, so agree completely with Hippy. Can the OP please provide a least a modicum of information on what he is trying to achieve? And how? Pepedog's reply was no help whatsoever! Sorry!

When posting please think about this...

1) What's the problem the post is trying to solve

2) Have I explained the problem?

3) How does my problem fix work?

4) How to apply the fix.

There, that should help even beginners, who will know, just from the answer to 1) whether they need to continue with the post or not.

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 6:49 pm
by SN
Glad it"s not just me then. . .

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 7:30 pm
by abishur
pepedog said:


I"m finding it quite interesting, even though I did quite similar 2 days before 1st post in this thread, and Dom must have done it months ago.
Short version, you make a working busybox system using about 5 files from firmware, all just using Windows only, and the card could even be fat16. The thread then builds on customising. I was thinking along same lines.


To be fair, I'm less concerned with *someone* explaining what it is, as much as I want the *OP* to explain what it is I want to make sure this isn't some robot spamming this topic every so often, but a real flesh and blood individual. 

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 9:07 pm
by jojopi
Abishur said:

To be fair, I'm less concerned with *someone* explaining what it is, as much as I want the *OP* to explain what it is I want to make sure this isn't some robot spamming this topic every so often, but a real flesh and blood individual. 
I believe alanyih's first language is Chinese.

There definitely does not exist a robot that can port a Linux distribution between architectures, seek out the correct fora to post about it, and then answer questions as he has.  But if there did I would not want to you to ban it.

His results are reproducible with the information provided.

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 9:14 pm
by abishur
jojopi said:


Abishur said:


To be fair, I'm less concerned with *someone* explaining what it is, as much as I want the *OP* to explain what it is I want to make sure this isn't some robot spamming this topic every so often, but a real flesh and blood individual. 


I believe alanyih's first language is Chinese.

There definitely does not exist a robot that can port a Linux distribution between architectures, seek out the correct fora to post about it, and then answer questions as he has.  But if there did I would not want to you to ban it.

His results are reproducible with the information provided.


That's the thing, it doesn't answer any questions in this thread.  Periodically there's some more script pasted on this thread and, provided the last person to post wasn't the OP then it quotes them and then pastes the script, but the script has nothing to do with what the previous person said.

Edit: Well, the response to is it smaller than DSL, might indicate a person responding, it might also have just coincidentally been the next message in the queue, or it could have been an auto generated response based off the word "smaller".  Even if they speak a different language, I just need some sort of concrete evidence that a real person is on the other end of this.  I may only speak/read enough Chinese to talk with a 2 year old, but I can make ample use of google translate

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 9:18 pm
by abishur
Also I want to make sure that this is actually relevant to the R-pi, from the posts it's clear that this is a linux distro, but is it one that is being designed to work on the r-pi (eventually even?) or are they just advertising their distro?

Re: Greetings from standalone Raspberry Pi

Posted: Mon Apr 09, 2012 11:28 pm
by toxibunny
The clue"s in the title, guys... Raspi 5 has *come alive*

NO DISASSEMBLE!

Re: Greetings from standalone Raspberry Pi

Posted: Tue Apr 10, 2012 10:55 am
by Burngate
As a non-linux-speaking monoglot here to learn, if, as I understand, this thread is about a distribution, should it not be moved to the "Distributions" sub-forum?

Re: Greetings from standalone Raspberry Pi

Posted: Wed Apr 11, 2012 12:03 am
by alanyih
pepedog said:


I"m finding it quite interesting, even though I did quite similar 2 days before 1st post in this thread, and Dom must have done it months ago.
Short version, you make a working busybox system using about 5 files from firmware, all just using Windows only, and the card could even be fat16. The thread then builds on customising. I was thinking along same lines.


You are right!

Thanks!

Re: Greetings from standalone Raspberry Pi

Posted: Wed Apr 11, 2012 12:38 am
by alanyih
1. what\"s kernel_emergency.img

kernel_emergency.img : kernel with busybox rootfs. You can use this to repair the main linux partition using e2fsck if the linux partition gets corrupted.

2. what\"s difference between slitaz_emergency.img and kernel_emergency.img

slitaz_emergency.img is based on kernel_emergency.img

slitaz_emergency.img is custom kernel with busybox rootfs

alanyih said:


Greetings from standalone Raspberry Pi

1. slitaz_emergency.img is based on kernel_emergency.img
Additional files supplied by the foundation
http://elinux.org/RPi_Advanced.....foundation

kernel_emergency.img : kernel with busybox rootfs. You can use this to repair the main linux partition using e2fsck if the linux partition gets corrupted.

2. download
# wget http://dl.dropbox.com/u/102419.....rgency.img (5.2M)

3. boot
# qemu-system-arm -m 256 -M versatilepb -cpu arm1176 -kernel slitaz_emergency.img &




Re: Greetings from standalone Raspberry Pi

Posted: Wed Apr 11, 2012 12:50 am
by abishur
alanyih said:


pepedog said:


I"m finding it quite interesting, even though I did quite similar 2 days before 1st post in this thread, and Dom must have done it months ago.
Short version, you make a working busybox system using about 5 files from firmware, all just using Windows only, and the card could even be fat16. The thread then builds on customising. I was thinking along same lines.


You are right!

Thanks!


Ah!  Finally evidence that this isn't some robot.  I'm going to move this into the distro's sub-forum.  *Please* make sure to add some basic comments to future code you upload

Edit: On second thought, I'll leave it here, it is more of a project than a distro ATM.