motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.85k stars 897 forks source link

Port To Berryboot #895

Open sol4ris2048 opened 7 years ago

sol4ris2048 commented 7 years ago

Hello,

I'm trying to boot on my raspberrypi3 B (with berryboot and squashfs img file) and it works perfectly with openelec and raspbian but with motioneyeos it does not work : i tried with released or prereleased versions (2017_03_26, 2017_03_29 and 2017_02_12) and at boot, the error is the same : "can't open /dev/ttylogin : no such file or directory" And this message is on the loop for ever and ever...... Could you please help me? Thanks a lot....

ccrisan commented 7 years ago

Have you tried one of the methods described here?

sol4ris2048 commented 7 years ago

Tanks for your answer. (I'm french so sorry for my bad english.....)

No i did not try this because i'm using berryboot and i downloaded motioneye img file on berryboot website.

Then, because of the error i got, i took your 3 last released and i transformed them into squashfs img files. And the error is still the same.....

Le 17 avr. 2017 12:22, "Calin Crisan" notifications@github.com a écrit :

Have you tried one of the methods described here https://github.com/ccrisan/motioneyeos/wiki/Installation?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/895#issuecomment-294446163, or mute the thread https://github.com/notifications/unsubscribe-auth/AKMq3FRMAJhB378yFpb6raPrdPYvl2fDks5rwz1mgaJpZM4M--1z .

ccrisan commented 7 years ago

Feel free to get back to us if you encounter problems using one of the recommended methods.

sol4ris2048 commented 7 years ago

Should i conclude that motioneyeos is not usable with berryboot?

Le 17 avr. 2017 12:32, "Calin Crisan" notifications@github.com a écrit :

Closed #895 https://github.com/ccrisan/motioneyeos/issues/895.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/895#event-1044835044, or mute the thread https://github.com/notifications/unsubscribe-auth/AKMq3D9cYEkkFdkiK_H3Kb9RmjHsHm2iks5rwz-pgaJpZM4M--1z .

ccrisan commented 7 years ago

Honestly I don't know how berryboot works and judging by the errors you get, it probably does not work well with motionEyeOS.

agoldcheidt commented 7 years ago

Hi @ccrisan it will be great if you can get motioneyeOS work under Berryboot, I run a website to download more than 170+ OS images for Berryboot and motioneyeOS is one of the most requested. I'm willing to do all tests on a Raspberry Pi 2 to make this work.

ccrisan commented 7 years ago

What are the prerequisites for an OS image to work under Berryboot?

agoldcheidt commented 7 years ago

Hi @ccrisan, the only thing that will not work under Berryboot is an OS image with a custom kernel or modules since Berryboot already include a kernel and default modules. If you check these steps you will have an idea on how Berryboot works. Basically, Berryboot compress the root partition via squashfs format and comment the all mounting points on the fstab file. That's it.

ccrisan commented 7 years ago

motionEyeOS uses the Raspbian kernel with no change to the configuration. However the fstab is split in three different files and may pose problems.

I don't have the time to investigate this and I don't think this is in any way a priority, but if anyone wants to help with this, I'd be happy to take a look over their pull requests.

ccrisan commented 7 years ago

Just to make it clear that porting motionEyeOS to Berryboot is still on the table, I'll reopen the issue.

agoldcheidt commented 7 years ago

Alright, I've been checking and making some tests, right now I see some scripts on the /etc/init.d and I found that the file: "S01mountall" include the following function:

mk_tty_login() { test -z "$os_tty_login" && os_tty_login=tty1 ln -sf /dev/$os_tty_login /dev/ttylogin }

That function, from what I understand, make a symbolic link of /dev/$os_tty_login (I don't know what's the source for $os_tty_login) to /dev/ttylogin. I think this function is directly related to the issue: "can't open /dev/ttylogin : no such file or directory".

ccrisan commented 7 years ago

The source for $os_tty_login is os.conf.

Given that you have no /dev/ttylogin symlink on your setup indicates that the function mk_tty_login() is never called. The reason is most likely the fact that the previous mount_fs function fails. And it probably fails due to something messing up with the fstab system.

ghost commented 6 years ago

I'd love to see this ported to Berryboot as well. I tried converting the image to make it compatible for Berryboot and get the same error for the reason you say, about the fstab being split into 3 files. I use my PI for several different OS's and so having it be on a dedicated memory card isn't an option....and everything else I use is able to be run from Berryboot....

ChristopherRush commented 6 years ago

Still no update on this issue?

agoldcheidt commented 6 years ago

Hi everyone, I'm sorry for haven't update this issue but yes, motion eyeOS is available to Berryboot thanks to an user who provide the fixes. You can download motion eyeOS here: http://berryboot.alexgoldcheidt.com/go/motion-eyeos