Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: roberts on September 04, 2012, 02:06:28 PM

Title: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 04, 2012, 02:06:28 PM
Now posted first cut of rpiCore.

http://distro.ibiblio.org/tinycorelinux/4.x/arm/armv6/
 
This is pre-alpha. There are no extensions,
Edit cmdline.txt for testing boot parameters. Use a powered hub to use a usb pendrive for backup/restore or persistent home testing.
Expect bugs. Use Raspbian for compiling then move and test on rpiCore.

Install to sdcard via the usual, example using sdd change to your specifics,
gunzip < rpiCore-20120904.img.gz | dd of=/dev/sdd

Proceed with caution. Test carefully.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: netnomad on September 05, 2012, 10:04:52 AM
hi roberts,

i tested your rpiCore-20120904.img and it boots flawless to the prompt.
the rootfs and /etc look pretty good :-)

what are the limits of this first stage?
can i start using my fluxbox-environment with almost all tcz-packages of the repository
or do we need certain arm-specific packages?

thank you for these first efforts for the rpi and i'm looking forward for the next stages.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: netnomad on September 05, 2012, 10:25:01 AM
hi roberts,

woooh.... with sudo udhcpc i got a working internet connection.
also tce-ab started promising... but after downloading and installing the midnight commander,
i got the error message that it is not possible to install or to mount the package on the loop device.

would you give me some hints what limits are now or what we have to consider for the next steps?

thank you for every help and hint.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: Rich on September 05, 2012, 11:02:58 AM
Hi netnomad
Any extensions you want to run need to be compiled for ARM. You can not run X86 programs.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: netnomad on September 05, 2012, 11:06:11 AM
hi rich,

thank you for your reply.

some further informations:

there are loop devices under /dev:
/dev/loop0 to loop7   =      8 loop-devices
and an empty dir was created under /tmp/tcloop for the first package that was attempted to be installed:
/tmp/tcloop/libiconv

error message:
mount: mounting /dev/loop0 on /tmp/tcloop/libiconv failed: no such device
although there is a /dev/loop0-device.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 05, 2012, 12:10:20 PM
As I stated in the first announcement post there are no extensions; yet!
You can test very basic stuff, for example:

Connect a usb pendrive via a powered hub.
create some test files in home.
try to backup to pendrive.
try to restore from pendrive.
edit cmdline.txt on sdcard to specify restore=sda1
test persistent home on pendrive, and opt

try using deb to tcz utility on some command line  raspbian deb packages and see if they will work.
try compling some command line utilty rapsbian and see if that will work.

I am working on setting up a procedure to keep raspbaerry pi and allwinner arm ports in sync with x86 core.
Once I get there I will then try to make a few simple extensions.

This is only the beginning!

Too much to do.

Any help is appreciated.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 05, 2012, 11:41:09 PM
Tried to run rpiCore-20120904.img in QEMU but no success. If someone have done it already, please share howto.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 06, 2012, 09:35:21 AM
Posted an update rpiCore-20120906.img.gz in http://distro.ibiblio.org/tinycorelinux/4.x/arm/armv6/
This syncs with x86 Core's base v4.6.1 and I updated the modules. Currently it contains way more modules than needed for base. But I left them in for now to hopefully help testing.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: netnomad on September 06, 2012, 12:13:16 PM
hi roberts,

would you mind to add the arm-version of mc.tcz with it's dependencies?
... so the testing and exploring of your arm-stages would be much more convenient, easier and faster.
and the learnig curve would be much higher :-)

thank you for your efforts.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: vinnie on September 06, 2012, 07:21:23 PM
Tried to run rpiCore-20120904.img in QEMU but no success. If someone have done it already, please share howto.

+1
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 06, 2012, 08:10:48 PM
Version of qemu not stated.
As I stated in another thread I have seen Raspbian running on qemu-1.1.1.1.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 06, 2012, 08:23:27 PM
hi roberts,

would you mind to add the arm-version of mc.tcz with it's dependencies?
... so the testing and exploring of your arm-stages would be much more convenient, easier and faster.
and the learnig curve would be much higher :-)

thank you for your efforts.

I am the only one working on this and as only one I will not be able to build all the extensions.
My focus, as with x86 Core, has been the base system. There is still much to do there.

I am relying on the slogan, "If you build it they will come." I must rely on a community to contribute as they have overwhelmingly done with the x86 platform.

As much as x86 Core is mature and stable, both arm ports are hatchlings just begining to walk; not able to fully run just yet.

I have had an open strategy to kickstart these arm ports. Each milestone has been posted and shared with the community.

I am currently looking into enhancing an existing tool to further demonstrate both arm systems.


Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: zerophnx on September 07, 2012, 11:25:02 AM
I can't wait to try this, though I won't have the SD card for another week or so. In the meantime I'll try compiling a few extensions with the Raspbian card.

Thank you for your continued work on Core, both with the x86 and ARM.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 07, 2012, 09:21:57 PM
Posted an update rpiCore-20120907.img.gz in http://distro.ibiblio.org/tinycorelinux/4.x/arm/armv6/
Fixed incorrectly configured squashfs module.
tce-load -i  is now working!

Still contains way more modules than needed for base. But I left them in for now to hopefully help testing.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: Rich on September 07, 2012, 10:00:16 PM
This may or may not be of interest::
http://landley.net/aboriginal/downloads/binaries/extras/
It contains some ARM binaries. The parent directory contains some cross compilers and the readme file
states that image files are bootable under qemu.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 08, 2012, 12:12:13 PM
Now I have Core 4.6 running in QEMU on WINDOWS XP.  As the first check I built a small C program. It works, so I will try with more complex programs mainained by me on TC.

(http://www.hasix.org/tc/picorehello.jpg)
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 08, 2012, 01:32:43 PM
I built John password cracker as it has no dependency and compiles on a traditional way. Works fine on Core. I packed it to a .tcz extension. Result is a rotating rotdash during load which never stops. Also I tried to loop mount manually but it doesn't work.

Is it expected to work already?

Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 08, 2012, 01:55:09 PM
Yes! tce-load works. However you need the lastest posted version.
I am running links text web browser on Raspberry Pi Core.
Which loads links.tcz and 6 dependencies!   ;D
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 08, 2012, 04:04:11 PM
Tested 20120907 version with a /tce dir on an ext4 image. It is found, drive mounted and /etc/sysconfig/tcedir linked to tce. However if extension is on onboot.lst boot procedure stops at extension loading.

Deleting onboot.lst system boots fine and works. Trying 'mount -o loop john.tcz 1' where 1 is an empty directory nothing happens. No message, no prompt.

john.tcz is packed on TC x86

Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 08, 2012, 04:33:49 PM
I use tce-load -i /mnt/sda1/links.tcz and works as expected.
Does not matter if I pack on tinycore or raspbian.
Have not tried onboot as that would mean editing cmdline.txt on sdcard.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 09, 2012, 03:23:48 AM
Found the problem. I'm using kernel 3.1.9+ with QEMU while rpiCore-20120907.img comes with 3.2.27+ modules therefore loop module is not loaded.

QEMU requries a specially compiled Raspbian kernel what I haven't found yet.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 09, 2012, 03:42:59 AM
Found 3.2.27 QEMU kernel only :(
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 09, 2012, 04:09:46 AM
No loop module in QEMU kernels  >:(
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 10, 2012, 12:08:49 PM
Knowing that it is a huge task of compiling and building extensions,
I have purposely made raspbianCore library compatible with Raspbian.

To that end I have been working on and testing dynamically creating
tczs directly from Raspbian repositories. If this is successful then
it will greatly lessen the need to build/compile hundreds of extensions.
So far initial tests look promising, example: Links browser and its dependencies.
Auto created by entering only links.

My goal is to easily and transparently gain access to the 40,000 debs
which the user can select. They, of course, become tczs and thus gain
the Core advantage of pristine boot, onboot, and ondemand features.
Our ibibio arm tcz repository might then host only custom extensions not
available in the Raspbian repositories.

So I would hold off building extensions until I accomplish a first
milestone of this tool. Then evaluate its performance and capabilities.

Of course, I am not going to abandon the community built extensions.
The support code for such will remain intact.
The new tool will be just another option.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: netnomad on September 10, 2012, 12:59:41 PM
My goal is to easily and transparently gain access to the 40,000 debs
which the user can select. They, of course, become tczs and thus gain
the Core advantage of pristine boot, onboot, and ondemand features.

hi roberts,

that's such a fascinating idea, such a overwhelming concept:
the beauty of the lean and clean tinycore combined with the vast amount of debian packages.
it's unbelievable...
i love to use my lean every-day-tools on my tiny core sticks
and i admire and enjoy the possibilities in the debian world
(from embedded routers over all kind of desktop machines up and down to tiny or mighty servers...)
... great prospect for us all.

keep on going, thank you.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 10, 2012, 01:22:02 PM
Hm..... There is nothing against to do the same on x86 platform, introduce debCore86 with the great Debian repository. This would position Core as one of the many Debian clones, loosing its original idea and unique ground, depending on a Big Brother giving up independency.

And half year later if someone asks what is Tiny Core Linux the answer is 'Just a strange Debian or Ubuntu something using uncommond approach, forget it.' And in one year time it is gone.

Back to RPI I understand lack of resources, but if TC on x86 is fine with current repository, RPI version can survive with less than 40,000 extensions. Current build scripts can be easily reused to have piCore offering similar functionality as TC today.

It is good to speed up the startup, to have a bootstrap toolchain, but thats all. If it is officially a .deb converter, no way back.  Making this move would mean to give up Tiny Core philosophy.

I'm sure it is possible to build a community keeping the original idea. Maybe it is slow, for sure different than existing, but can work. You need marketing. You can touch many RPI funs, both professionals and hobbist who do not know TC yet. To be 10th of RPI is different than to be 500th on x86.

Make available a minimal system with a development toolchain and introduce as an ideal platform for small systems for both hw and QEMU in the RPI community. They will like it.  There is a great momentum. Use it.

But please, do not piggiback on the Debian repository and do not kill Tiny Core!

P.S. Read this http://forum.tinycorelinux.net/index.php/topic,13864.0.html



Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 10, 2012, 03:38:37 PM
I thought I was quite clear when I said I was not going to change in any way the support for user contributed extensions.

That I stated that this tool, a deb2tcz on steriods, would be evaluated. We have had Jason's basic deb2tcz for quite a while and there was no such outrage over its announcement or use!

I am expanding the concept of deb2tcz to process debian dependencies and with selection via  a package browser ala ab/tce/tce-ab. It is an option just at the current x86 deb2tcz. YOU don't have to use it!

I am NOT giving up on the concepts that I have developed over the many years of doing Linux distributions.

There is not going to be .deb files in your extension directory. There is no call for such a harsh reaction on an optional tool.

Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: vinnie on September 10, 2012, 03:51:57 PM
if it is possible for us to have compatibility with .deb packages as additional features without alter the normal operation of the .tcz system, this seems very positive, otherwise I agree with bmarkus, it is best to keep the spirit that has made Core distro really different.

I hazard a proposal, if we had a script system repository like Aur of archlinux this could automate the compilation by architecture from which you start the script, thus making the creation of packages multiplatform.
I do not understand crosscompilation, so forgive me if I'm saying stupid things  :P.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 11, 2012, 01:42:16 PM
No loop module in QEMU kernels  >:(
Qemu kernels are not production kernels.
I don't mind to build and test a qemu kernel if on TinyCore. I have not Windows.
Does your present qemu kernel with piCore.gz  load using Core's qemu-extra.tcz
or does that extension need an update?
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 12, 2012, 01:42:02 AM
No loop module in QEMU kernels  >:(
Qemu kernels are not production kernels.
I don't mind to build and test a qemu kernel if on TinyCore. I have not Windows.
Does your present qemu kernel with piCore.gz  load using Core's qemu-extra.tcz
or does that extension need an update?

Result is kernel panic.  TC repo version is 1.0 what I'm using is 1.1
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 12, 2012, 02:07:15 AM
Tested with different QEMU versions on WINDOWS.

1.0.x - kernel panic, same as on TC
1.1.x - OK
1.2.x - OK

Would be good a QEMU 1.2 update
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: curaga on September 12, 2012, 09:13:57 AM
I'm really short on time nowadays.  Feel free to post an update, the configure arguments are in the usual place:
ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/4.x/x86/tcz/src/qemu
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 13, 2012, 01:15:26 AM
I'm really short on time nowadays.  Feel free to post an update, the configure arguments are in the usual place:
ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/4.x/x86/tcz/src/qemu

Thanks for the link.

Now I have QEMU-1.2.0 built on TC. It looks OK, Raspbian qemu-kernel works like on the WINDOWS version, piCore 4.6.1 starts. I will submit it after some testing and fine tuning.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 13, 2012, 08:56:57 AM
Status after more testing. piCore using qemu-kernel from the Raspbian emulator for Windows works on TC 4.6.1 except kernel modules due to the mismatch of kernel versions. Raspbian 2012-07-15 works fine in console mode. Starting X it continously restarts (telinit 5), startx seems to be freezing after the raspberry image, don't know why. Same setup is OK on Windows.

Anyhow, it can be a usable starting for piCore and QEMU variant of piCore kernel.

There are 'pflash write unimplemented command sequence...' errors during boot. There is a patch, applying it this goes away and replaced with more flash related errors, so I didn't apply the patch. Do not know is it related to X problem or not.

Anyhow, it is not for the first version.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 13, 2012, 10:21:39 PM
The posted http://distro.ibiblio.org/tinycorelinux/4.x/arm/armv6/rpiCore-20120907.img.gz
seems to be testing quite well.

I am using a pendrive for my backup and extensions. It is recognized and is easily available via
the standard mount /mnt/sda1. You can backup and restore from it, you can tce-setdrive it.
You can tce-load -i links and it will use the link /etc/sysconfig/tcedir. All that seems to be working.

You can easily specify the usual boot commands by editing cmdline.txt, e.g., waitusb=5:LABEL=mypi tce=LABEL=mypi
 onboot works as expected!.


Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 13, 2012, 10:34:37 PM
A friend of my reported that my first extension, john.tcz  installs fine and works.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 15, 2012, 07:58:06 AM
Now it runs in QEMU perfectly, on WINDOWS as well as TC. This screen is captured on TC 4.6 (x86) running piCore 4.6.1 in QEMU:

(http://www.hasix.org/tc/picoreqemu1.jpg)
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: vinnie on September 15, 2012, 05:11:40 PM
as soon as the package is ready I will try to test  :D
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 15, 2012, 08:56:36 PM
To test piCore I started to build extensions, first with those with no dependency. Than built ncurses in the same splitup as on x86. ncurses used by many CLI programs. Next test was building iptraf and htop using ncurses. Everything is working on the same way as x86 core with the newly built tcz's, see

(http://www.hasix.org/tc/picorehtop.jpg)

To build extensions I'm using Raspbian running in QEMU on WINDOWS with a shared virtual drive used by both Raspbian and piCore to make file transfer easy. My original build scripts are working with very little modification, in most cases it is enough just to remove Intel references in CC and CCX compiler options.

All together result is very positive, piCore works as expected.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 16, 2012, 11:42:33 AM
I have posted an updated image. Please note the change in directory on server.
See http://distro.ibiblio.org/tinycorelinux/4.x/armv6/

This update fixes broken library links.

Also now posted the first extensions:
See http://distro.ibiblio.org/tinycorelinux/4.x/armv6/tcz
A big THANK-YOU goes to bmarkus!

I have also created the support databases, tags, info, size, and md5, so that tce-ab from raspberrypi now works.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 16, 2012, 12:30:25 PM
Great, I see the repo with tce-ab and links are OK now.

I do not find libz.so.1 in the base; it is there in the x86 version. Possibly there are more missing libs.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 16, 2012, 01:27:23 PM
bmarkus, I just sent you another cut of the qemuCoreFiles with libz.
Please test and if good I will update rpiCore.img
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 16, 2012, 08:31:02 PM
Robert, still it doesn't work for me, see

(http://www.hasix.org/tc/picorelibz1.jpg)
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 16, 2012, 10:46:32 PM
Re-sent qemuCoreFiles.tgz. libz now passes ldd test.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 17, 2012, 12:38:34 AM
Now it is OK.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 17, 2012, 09:26:45 AM
I have posted an updated image, 20120917.
See http://distro.ibiblio.org/tinycorelinux/4.x/armv6/

This update fixes missing libz.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 17, 2012, 10:20:04 AM
Robert,

not all loaded and working extensions are in /usr/local/tce.installed

(http://www.hasix.org/tc/picoretcz1.jpg)

Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 17, 2012, 01:51:25 PM
Sorry. Haven't been able to reproduce. I have 11 extensions loaded on boot, with 11 loop mounts and 11 items in tce.installed.
Perhaps it is specific to an extension or perhaps to Qemu vs bare metal pi? I don't have much in the way to test Qemu specifics.
Will need more information.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 17, 2012, 09:27:54 PM
OK, will try to investigate. For testing I repacked them with the patched TC version of mksquashfs but no chnage, except the bigger tcz size. Good point that they get mounted and work.

BTW, is it really necessary to have the patched squashfstools?
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: curaga on September 18, 2012, 12:28:45 AM
You'd rather force every extension maker to use the long command line? mksquashfs src dest.tcz -b 4096 -no-xattrs; chmod 644 dest.tcz
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 18, 2012, 12:33:11 AM
You'd rather force every extension maker to use the long command line? mksquashfs src dest.tcz -b 4096 -no-xattrs; chmod 644 dest.tcz

No, just asking :) This is over, I'm using the TC variant already which is packed to .tcz :)
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 19, 2012, 08:59:24 PM
My first planned milestone was to have the Swiss Army Knife available for piCore. Now it is there:

(http://www.hasix.org/tc/picoremc1.jpg)

Without mc I fill always really bad and it is the first package I install if not part of default install. This version is built against ncurses instead of slang to save space.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: netnomad on September 20, 2012, 03:49:52 AM
hi bmarkus,

mc is a great contribution, thank you.

Quote
Without mc I fill always really bad and it is the first package I install if not part of default install.

i certainly agree,
for me there won't be any hour spending time with a computer without using mc once!
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 20, 2012, 06:21:26 AM
I have posted qemuPiCore.tgz into http://distro.ibiblio.org/tinycorelinux/4.x/armv6/
This provides a specific kernel and initrd for qemu and requires the very latest qemu to work.
qemu-arm.tcz in the x86 repository will allow those without a raspberrypi to see, help test,
and contribute to the raspberrypi Core effort.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: t.janos on September 20, 2012, 07:32:22 AM
To bmarkus:
Bela,
I would like to summarize here the topics, we discussed in our private mails on testing the new tcz packages on raspberripy.
The new mc.tcz need this previously installed packages:
ncurses.tcz
ncurses-common.tcz
glib2.tcz
libiconv.tcz
and
mc.tcz
After installing this, it run, as expected.
Congratulations to this works.
With the mc you can make accessible a usefull everyday tools for the majority of users.
I use it in every sessions too.
------
About the remote access of the TC on rpi:
I got the dropbear binary from the rasberian. It run on TC, but it need to generate some keys, and it need to change this keys, if you want to connect from remote site, from ssh. I made some tries to make this keys, but without success.
I think, if I have a script, which convert the dropbear deb package to tcz, it would be more simple to realize this.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 20, 2012, 07:58:39 AM
János,

welcome on board. I compiled already dropbear and will make a tcz package in few days. However you have to learn how to configure, mostly it is not a packaging issue :) 
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: t.janos on September 20, 2012, 09:28:23 AM
Bela,
thank you, the dropbear would be usefull to manage the tc on raspberry without any tv-screen.
It is shure the configuration of the dropbear isnot a tc packaging issue, but if I download it to the raspbian, it dont need any more configure steps. It run, and I can ssh into it.
It is the similar situation with my favorite, small web server, it is boa. I pulled it from raspbian, and after some manual configure/file creation steps it run on TC. This stepps was made somewhere in the deb package control.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 20, 2012, 09:33:38 AM
OK, will check what Raspbian is doing. Looks like we need a startup script.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: curaga on September 20, 2012, 09:48:43 AM
I think it'd be good to stay compatible with the x86 repo. There extensions don't generally autostart, but dropbear's init script can generate keys.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 20, 2012, 09:52:41 AM
Yes, as much as possible I keep compatibility keeping same dependencies, split-up and naming and whenever possible use orginal build scripts :) Same valid for dropbear. Just need some time
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 20, 2012, 01:14:17 PM
I think it'd be good to stay compatible with the x86 repo. There extensions don't generally autostart, but dropbear's init script can generate keys.

curaga,

existing dropbear.tcz in the x86 repo is not PPI compatible, keeps files in /etc, /etc/init.d ... Modifying the dropbear script extension can be made PPI compatible, rearranged in /usr/local

It works fine in the piCore version. Thanks for the original. Modified version attached. Just for the case you want to make x86 version compatible to piCore  :D

Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: t.janos on September 21, 2012, 01:17:34 AM
Bela,
I received your new dropbear.tcz for raspberrypi. I installed it on rpi, and started, as you note, and as usually the parctice with this system daemons, use the start/stop script in ./init.d dir (the special is here, it is not in /etc, but in /usr/local/etc...):

sudo /usr/local/etc/init.d/dropbear start

It start and generate the key files, and listen on the ssh port.
To connect into it from a remote machine, need to create "standard" user(s) on rpi, means username with valid passwd. The recently used TC system has the default username tc, without any password, and this user has root privilegies. The ssh dont allow to make connection with username, havenot passwd.

Another small trick: when I tried to make connection on second time, start a bare/minimal tc system, the ssh dont allow me to make this connection. It happens, because on the previous session the runing dropbear sent me keys, and it was stored on the "remote" machine.
There is a "brute-force" solution to this situation: if you rename/delete the known.hosts file in your home dir, under ./.ssh, the dropbear daemon will send you new keys, valid for the new sessions.
You can see this on the attached screenshot: in the left-side terminal windows I made an ssh connection on my LAN, used the 192.168.1.111 ip. Previously you can see the rename of the known.hosts file. On the right-side windows I made connnection to the raspberrypi through my public ip address, hg5apz.homelinux.org, used the preciously generated username. On this connection run the mc whitout any problems.

So: it is working, and this is a usefull tool to access the growing tc system on rpi. Bela, thank you for it!
t.janos


[attachment deleted by admin]
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: curaga on September 21, 2012, 06:33:51 AM
@bmarkus

Heh :)

I said it elsewhere, that dropbear.tcz would be updated to current standards when it needed an update otherwise. There weren't any new versions in a long time.

@janos

You're supposed to save the host keys in your backup, as well as set passwords. Both are working as intended.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 21, 2012, 09:11:26 AM
Now it is getting usable. You have file manager, ftp, ssh, htop. I also submitted lynx, sqlite3 and Python 2.7.3 will follow soon.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 23, 2012, 04:22:45 PM
I have posted an updated image, 20120923
See http://distro.ibiblio.org/tinycorelinux/4.x/armv6/
Both rpiCore and qemuPiCore images have been updated to set time.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: vinnie on September 24, 2012, 01:05:25 AM
Tested on qemuPiCore.tgz 4.6.1:
The provides function of tce-ab look in the repository of core x86 not in arm repository
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 25, 2012, 02:34:17 AM
Robert,

what is about X? Are you going to add it and offering a TC variant?
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 25, 2012, 05:56:26 AM
Robert,

can you provide eglibc_base-dev.tcz for piCore?
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 26, 2012, 10:35:26 PM
Tested on qemuPiCore.tgz 4.6.1:
The provides function of tce-ab look in the repository of core x86 not in arm repository
I am considering dropping cgi and using zsync to have databases stored locally.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 26, 2012, 10:40:46 PM
Robert,

what is about X? Are you going to add it and offering a TC variant?
I have too much on my to-do list. Also the arm base core still need more work. Modules need to be factored out. Infrastructure needs more work. Like you are the only one doing extensions. I am only one doing these arm ports and supporting infrastructure, as well as the continuing development of Core x86.

Since X is really just more extensions. Please feel free to not wait on me and proceed if you wish. Otherwise in due time as permits.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 26, 2012, 11:04:06 PM
Robert,

can you provide eglibc_base-dev.tcz for piCore?

Managed, drop my request.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 26, 2012, 11:06:06 PM
Robert,

what is about X? Are you going to add it and offering a TC variant?
I have too much on my to-do list. Also the arm base core still need more work. Modules need to be factored out. Infrastructure needs more work. Like you are the only one doing extensions. I am only one doing these arm ports and supporting infrastructure, as well as the continuing development of Core x86.

Since X is really just more extensions. Please feel free to not wait on me and proceed if you wish. Otherwise in due time as permits.

OK, it was just a qustion. X is not the highest priority stuff as I'm fine with CLI.

BTW, getting close to heve toolchain for piCore, just compiled successfully hello.c on piCore :)
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: vinnie on September 27, 2012, 06:22:15 AM
Quote
BTW, getting close to heve toolchain for piCore, just compiled successfully hello.c on piCore :)

 :)
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: zerophnx on September 27, 2012, 10:17:58 AM
I'm more than willing to help compile programs on my Pi and mix in any necessary files (initscripts and such) from x86 core to help with extensions.

I just have no idea where to start!
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 27, 2012, 11:19:57 AM
Hi, wait a bit. I'm actually testing the toolchain on piCore and will release it soon. T
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 28, 2012, 07:11:21 AM
@robert

Please add a symlink

/lib/clib.so.6 --> whatever actual is

in next cut
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 28, 2012, 07:23:55 AM
I think you mean /lib/libc.so.6
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 28, 2012, 07:38:55 AM
I think you mean /lib/libc.so.6

You are right, it was a typo
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 28, 2012, 08:22:13 AM
Interestingly there is no such link from /lib in Raspbian.
And I guess ldconfig is not helpful.
Some application not available in Raspbian is hard coded to look in /lib ?
I will add the link and upgrade to 4.6.2 base. But I am curious.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 28, 2012, 11:18:55 AM
Interestingly there is no such link from /lib in Raspbian.
And I guess ldconfig is not helpful.
Some application not available in Raspbian is hard coded to look in /lib ?
I will add the link and upgrade to 4.6.2 base. But I am curious.

It is ld of binutils. Not the Raspbian binary, but a tcz package built from source on Raspbian :(
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on September 28, 2012, 01:18:17 PM
Posted updated images for both qemu and native rpiCore-20120928.img.gz
This brings the base up to 4.6.2 and changes provides from cgi to zsync'ed local database.
Note only the first time use of provides will be a bit slower.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on September 30, 2012, 01:57:55 PM
Robert,

please upload kernel and Busybox patches and config files.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: roberts on October 01, 2012, 09:18:17 AM
Posted.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on October 01, 2012, 10:04:00 AM
Posted.

Thanks!
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: cast-fish on October 05, 2012, 07:17:32 AM
Hello

The Rasb Pi has had further upgrades with it's Kernel.

Users can now select any types of "overclocking" they require up to 1.0 ghz. This is legitimate
and does not void any warranty.

The "overclocking" is dynamic and comes into play when cpu workload demand is high.

That is on the local web page of the foundation. Improves the Pi as a device.

Vince.
Title: Re: Towards Core (microcore) on Raspberry Pi
Post by: bmarkus on October 08, 2012, 02:09:54 AM
/tmp/tce always created, even when /tce found on a HDD partition.  No need for it in such case.

It's 4.6.2

BTW, x86 is the same