Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 07:51
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
roar-ng and Subito GNU/Linux 0.9.5 Beta
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 7 of 12 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 Next
Author Message
peebee


Joined: 21 Sep 2008
Posts: 1519
Location: Worcestershire, UK

PostPosted: Wed 29 Feb 2012, 14:00    Post_subject:  

Iguleder wrote:
Wrong - actually, it isn't recognized. You need that sleep to let the kernel recognize the device.

It's the boot loader that loads the initramfs and the kernel - remember? Wink


Hi

I can confirm that sleep=10 in menu.lst was sufficient to get a savefile to create.....

however, since creation the boot sequence gets all the way to the login prompt (only error message shown which might be significant just after "Loading save file ... done" it says:
ln: /mnt/union/mnt/home/sdb1: Operation not permitted
)

I type root and a lot of error messages flash up (unreadable) and then the screen blanks to grey and the laptop is dead.

I don't seem to be doing too well with this usb stick install ....

Cheers
peebee

_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send_private_message Visit_website 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Wed 29 Feb 2012, 17:26    Post_subject:  

peebee

Just for the heck of it try moving the files out of /subito to /

_________________

Back to top
View user's profile Send_private_message 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 855
Location: SE

PostPosted: Wed 29 Feb 2012, 19:39    Post_subject:  

Iguleder wrote:
Regarding the save files file system - it can be anything, as long as you can create it from the initramfs. I think I could change this so save files are created at shutdown (so you don't have to put big packages in the initramfs) ... any thoughts? Rolling Eyes
Thoughts - mostly along the lines of ; MHHP, read (all of) the relevant scripts once more, before posting half-witted replies Embarassed! Yes, of course, it's all there - create_save_file is just an auxiliary script to create a default-FS save-file, unless one is pre-created Embarassed.

However, I wonder a bit about this line in init
Code:
[ -n "$home_partition" ] && ln -s $home_partition /mnt/union/mnt/home


Thanks again for this wonderful build-tool Smile/ MHHP

_________________
Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285

Slackos & 214X, ... and Q6xx
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send_private_message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Thu 01 Mar 2012, 00:29    Post_subject:  

@aragon, thanks for the link, that was very helpful! See below.

nooby wrote:
That is how it works for a standard full install Linux and not a Live CD or
a Live or Frugal install of Puppy or Subito?
Subito seems to follow it closely with only minor variations.

Following aragon’s tip, I put this together. Maybe someone else will find it useful?
Code:
 
Outline of the Subito boot process

isolinux‭ (or other ‬boot loader‭)
   #‎ ‏loads‭ ‬-‭>‬vmlinuz‭ (‬linux kernel‭)
kernel
‎   ‏#‎ ‏Initializes and configures the computer's memory,‭ ‬configures hardware attached‭
   to the system,‎ ‏processors,‭ ‬I/O subsystems,‭ ‬storage devices,‭ ‬and more.
‎   ‏#‎ ‏Finds‭ ‬initrd.gz,‭ ‬decompresses it and mounts it in ram‭ (‬initramfs‭)‬.
‎   ‏#‎ ‏Runs init script from the initramfs.
init
‎   ‏#‎ ‏set the executable search path
‎   ‏#‎ ‏mount all virtual file systems‭ (‬rootfs‭ ( ‬/‭ )‬,‭ ‬/proc,‭ ‬/sys‭)
   #‎ ‏generate device nodes for all recognized partitions
‎   ‏#‎ ‏mount the main file system Squashfs image
‎   ‏#‎ ‏mount the main Squashfs image,‭ ‬located at the file system root
‎   ‏#‎ ‏create a mount point for the save file or the tmpfs file system
‎   ‏#‎ ‏mount the home partition or a tmpfs file system instead
‎   ‏#‎ ‏create a union of the home partition and the main file system
‎   ‏#‎ ‏move the mounted file systems to the union file system's‭ ‬/mnt
‎   ‏#‎ ‏unmount virtual file systems‭ (‬/proc,‭ ‬/sys‭)
   #‎ ‏write or generate the hostname file
‎   ‏#‎ ‏create the boot mode file
‎   ‏#‎ ‏create‭ ‬/mnt/home
‎   ‏#‎ ‏switch to the union file system
‎      ‏exec switch_root‭ ‬/mnt/union‭ ‬/sbin/init
/sbin/init,‎ ‏runs‭ ‬/etc/inittab
‎   ‏#‎ ‏/etc/inittab,‎ ‏sets up ttys,‭ ‬shutdown‭ & ‬reboot scripts.,‭ ‬runs‭ ‬/etc/rc.d/rc.sysinit
‎      ‏/etc/rc.d/rc.sysinit
‎         ‏#‎ ‏set the executable search path
‎         ‏#‎ ‏mount all virtual file systems‭ ( ‬/proc,‭ ‬/sys‭ )
         #‎ ‏enable all swap partitions specified in‭ ‬/etc/fstab
‎         ‏#‎ ‏generate module dependency files
‎         ‏#‎ ‏set the hostname
‎         ‏#‎ ‏set up up a loopback interface
‎         ‏#‎ ‏start logging daemons
‎         ‏#‎ ‏start udev and wait for it to load all required modules
‎         ‏#‎ ‏load the keyboard map
‎         ‏#‎ ‏set the console font
‎         ‏#‎ ‏update cache and all sorts of generated files,‭ ‬runs‭ ‬/etc/rc.d/rc.update
‎            ‏/etc/rc.d/rc.update
‎               ‏#‎ ‏generate the loader cache
‎               ‏#‎ ‏update the MIME database
‎               ‏#‎ ‏update the gdk-pixbuf list of available loaders
‎               ‏#‎ ‏update the list of Pango modules
‎               ‏#‎ ‏update the GTK+‭ ‬icon cache
‎               ‏#‎ ‏generate the font cache
‎         ‏#‎ ‏start extra daemons (‭run everything in /etc/rc.d with a ’start’ argument)
/etc/profile ( what calls /etc/profile? /sbin/init? )
‎   # Set PATH
‎   # Set ‏file permissions mask
   # Set up history
   # Run commands in all /etc/profile.d *.sh scripts
   # Run commands in /etc/profile.local if it exist
   # Set system variables TERM, EDITOR, LANG, LC_COLLATE, and XDG_*
   # Make sure ~/.desktoprc exists
   # Runs startx
      startx
         #executes /etc/X11/xinit/xinitrc
            xinitrc
               # Runs scritps in ~/Startup
               # Sets the desktop background
               # Runs hsetroot
               # Runs delayed_run
               # Starts the window manager

I would like this to be as accurate as possible so corrections are welcome and appreciated. For instance, what calls /etc/profile? /sbin/init?
MHHP wrote:
Thanks again for this wonderful build-tool

A big +1. Well organized with nice clean, readable code.

_________________

Back to top
View user's profile Send_private_message 
Iguleder


Joined: 11 Aug 2009
Posts: 1924
Location: Israel, somewhere in the beautiful desert

PostPosted: Thu 01 Mar 2012, 04:03    Post_subject:  

Very nice explanation! /etc/profile should be executed by the login shell, as far as I know.

Regarding /mnt/home - it's there as a handy symlink to the save partition, for two reasons:
- You don't want every script to guess which partition is used for persistency.
- You don't have to remember its name.

There are many new features and improvements to roar-ng, most notably:
- Hybrid ISO image - you can write them directly to USB drives and there you have live-USB sticks!
- The long-anticipated user manual
- Bug fix for the D-Bus pidfile issue
- /mnt/home is now removed by the init script, since it is kept in the save file and causes a small error
- /etc/rc.update takes a few seconds on the first run, but doesn't slow down the boot process anymore on consequent runs

For all those who use roar-ng at the moment:
- I updated some packages and removed the old ones - we don't like legacy stuff!
- I removed hnb and Yad, since the former isn't very useful (after all, we've got Xpad and TuDu) and the latter isn't used by roar-ng, so it's a waste of space.
- I'm currently testing version 004, which seems pretty good now. I think I'll wait with implementing "full" mode (e.g saving to a partition) and upload it today, in its stable form.
- I added Geany to the repository Very Happy

EDIT: updated the kernel from version 3.0.22 to version 3.0.23. I really like this approach, of sticking to the most recent long-term support kernel version - we get "free" security and stability updates every week or so! Smile

Also, I implemented "full" mode in about 5 lines of code, untested. I'll do some basic testing ... then it's time to upload the latest and greatest roar-ng 004.

EDIT 2: roar-ng is now hosted in GitHub.

_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Sat 03 Mar 2012, 13:19    Post_subject: hpm-install  

iguleder,

In hpm-install isn't PKG_DATA_DIR undefined here?
Code:
# make sure the package is not installed already
if [ -f "$PKG_DATA_DIR/$2" ]
then
   echo "Error: the package is already installed."
   exit 1
fi

# include the configuration file
. /etc/hpmrc

_________________

Back to top
View user's profile Send_private_message 
Iguleder


Joined: 11 Aug 2009
Posts: 1924
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 03 Mar 2012, 13:44    Post_subject:  

Fixed. Thanks for the report! Smile
_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
eldersprig

Joined: 28 May 2011
Posts: 4

PostPosted: Sat 03 Mar 2012, 18:56    Post_subject:  

Great work!!

I see you've added Arch linux support in the git.

You can add ARM support easily now.

http://www.armedslack.org/

http://archlinuxarm.org/
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 04 Mar 2012, 20:19    Post_subject:  

Igu the Rasberrians (Raspberry Pi)
http://www.metro.co.uk/news/892140-programming-is-as-easy-as-pi-is-the-raspberry-pi-really-the-future
now have an ARM Arch base
http://www.raspberrypi.org/downloads

Mentioned your project - see below Cool

Can you compile for an architecture you don't yet have access to?
You did buy a couple of ARM devices . . .
- roar-ng and Subito GNU/Linux working on them?

Keep an eye on PARM
http://puppylinux.org/wikka/PARM

Message to raspberrians:
Quote:
Bravo Arch
Arch did good.
The more penguins, The more options. The more learning.

Puppy Linux can use woof2 to build from Arch. Though our early
versions are likely to make use of Debian Puppy scripts.
Some Puppy Linux radical plans are based around Arch.
http://bit.ly/AdpMr9

We will be smaller, faster, leaner.


The raspberrians are promising me a series A board by the end of the week
- heard that before . . . Rolling Eyes
Anyway I tried your ISO as a potential build base but my Geforce graphics card is not supported by your default boot?

May have to use plan B (stripped down Debian to start with)

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Iguleder


Joined: 11 Aug 2009
Posts: 1924
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 05 Mar 2012, 15:45    Post_subject:  

In fact, you can build for another architecture, but in order to compile packages using roar-ng, you'll need to run it on that architecture, through any distro.

EDIT: Nouveau is included in the Subito kernel, so GeForce cards are OK'ish.

Regarding a Debian base - it doesn't matter on which distro you run roar-ng - packages built using it are cross-compiled within the distro you build anyway.

_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 05 Mar 2012, 17:29    Post_subject:  

Iguleder wrote:
In fact, you can build for another architecture, but in order to compile packages using roar-ng, you'll need to run it on that architecture, through any distro..


Many thanks Smile
Will run through Debian and as displaying on HDMI TV, graphic card probs should be circumnavigated..
Just managed to order a B board RPi (at last) - 58 days to delivery
- in Internet time I think that is aprox 3 years

Hope to have an A board sooner - thanks to Ed (another Puppy in US) for his help with the Rpi Foundation Smile

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 855
Location: SE

PostPosted: Tue 06 Mar 2012, 20:43    Post_subject:  

Upon fsck:ing my roar-ng-build's save-file (ext2), there are many FS_errors ...

Right, there is a sequential mounting of file-systems, which are unioned by aufs at / - then if load_sfs is run for e.g. devx.sfs, there is another mountpoint remounted ro in the aufs-tree at / .

How to disentangle this mess, for to cleanly unmount /mnt/save and /mnt/home_partition, by unmounting/remounting backwards? Is it possible? The woof-builds unmount save-files and home-partitions cleaner, irrespective of any fsck run at re-boot, than my roar-ng builds.

Can a cleaner unmount of save-file and home-partition be achieved by a remount,ro of the aufs-tree, or even tricked by a blunt, non-remounted ro, sync;umount -l?

I did read the aufs and aufs-utils documentation and, I must admit, I ended up non-the wiser ... Embarassed


Roar-ng is fun Smile (and somewhat addictive Shocked)

Grateful for any input Smile/ MHHP

_________________
Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285

Slackos & 214X, ... and Q6xx
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send_private_message 
Iguleder


Joined: 11 Aug 2009
Posts: 1924
Location: Israel, somewhere in the beautiful desert

PostPosted: Wed 07 Mar 2012, 00:33    Post_subject:  

Yep, there is some issue with ext2 errors.

However, I don't think it's possible to cleanly unmount the Aufs file system because it's the file system root. I'll take a look at this on this weekend.

I've been thinking - maybe we should revert back to the old behavior - make create_save_file manual and put it in the main file system, so the user can create a save file with any file system (since the required tools are there).

_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
Max Headroom


Joined: 28 Jun 2006
Posts: 187
Location: GodZone Kiwi

PostPosted: Sun 18 Mar 2012, 23:19    Post_subject: G'day Iguleder, Please eXplain this dd...
Sub_title: This ISO is hybrid, which means you can make a live USB easily, just dd it to the device.
 

G'day Iguleder, Please eXplain this dd...

This ISO is hybrid, which means you can make a live USB easily, just dd it to the device.

Cheers Smile
Back to top
View user's profile Send_private_message YIM 
gcmartin


Joined: 14 Oct 2005
Posts: 4446
Location: Earth

PostPosted: Mon 19 Mar 2012, 16:07    Post_subject: links in the Opening Page (OP)  

The ISO and DEVX links in the OP is broken.

Also, as I may remember, there is a Manual/Guide floating around somewhere; is there a link to it (I may have missed that in the OP)

Here to help

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 7 of 12 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1107s ][ Queries: 13 (0.0066s) ][ GZIP on ]