alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Wed Apr 04, 2012 2:23 pm

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 &


alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Thu Apr 05, 2012 8:30 am

# 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.

alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Thu Apr 05, 2012 8:30 am

# 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.

alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Sat Apr 07, 2012 7:58 am

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

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Greetings from standalone Raspberry Pi

Sat Apr 07, 2012 11:14 am

Zounds! What manner of wizardry is this?
note: I may or may not know what I'm talking about...

alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Sat Apr 07, 2012 3:07 pm

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

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: Greetings from standalone Raspberry Pi

Sat Apr 07, 2012 3:13 pm

Eh? Why does this thread consist entirely of shell script?
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Greetings from standalone Raspberry Pi

Sat Apr 07, 2012 3:31 pm

Something wonderful has happened ... :O
note: I may or may not know what I'm talking about...

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: Greetings from standalone Raspberry Pi

Sat Apr 07, 2012 3:43 pm

Is this even smaller than DSL?
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 2:49 pm

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


User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 3:42 pm

@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.
Dear forum: Play nice ;-)

tufty
Posts: 1456
Joined: Sun Sep 11, 2011 2:32 pm

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 4:04 pm

Boarder :

Border :


Just noticed your .sig. woops.

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 4:09 pm

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.

hippy
Posts: 5935
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 5:08 pm

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.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23631
Joined: Sat Jul 30, 2011 7:41 pm

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 5:39 pm

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 6:49 pm

Glad it"s not just me then. . .
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 7:30 pm

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. 
Dear forum: Play nice ;-)

User avatar
jojopi
Posts: 3084
Joined: Tue Oct 11, 2011 8:38 pm

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 9:07 pm

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.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 9:14 pm

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
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 9:18 pm

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?
Dear forum: Play nice ;-)

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Greetings from standalone Raspberry Pi

Mon Apr 09, 2012 11:28 pm

The clue"s in the title, guys... Raspi 5 has *come alive*

NO DISASSEMBLE!
note: I may or may not know what I'm talking about...

User avatar
Burngate
Posts: 6002
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Greetings from standalone Raspberry Pi

Tue Apr 10, 2012 10:55 am

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?

alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Wed Apr 11, 2012 12:03 am

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!

alanyih
Posts: 14
Joined: Fri Dec 23, 2011 3:28 am

Re: Greetings from standalone Raspberry Pi

Wed Apr 11, 2012 12:38 am

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 &




User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Greetings from standalone Raspberry Pi

Wed Apr 11, 2012 12:50 am

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.
Dear forum: Play nice ;-)

Return to “Other projects”