- 18
- 277 924
Maple Circuit
Canada
Приєднався 22 тра 2024
A place for tech lovers!
LFN | Make your own distro from Nothing!
Lets start doing practical stuff, hope you enjoyed!
My notes: maplecircuit.dev/videos/2025-1-25-lfn-make-your-own-distro-from-nothing.html
0:00 Intro
1:00 Kernel
5:58 Busybox
11:08 Grub
My notes: maplecircuit.dev/videos/2025-1-25-lfn-make-your-own-distro-from-nothing.html
0:00 Intro
1:00 Kernel
5:58 Busybox
11:08 Grub
Переглядів: 11 006
Відео
Linux Kernel 6.13 | you won a guitar pedal?
Переглядів 5 тис.22 години тому
Beginner friendly deep dive into the latest kernel! My notes: maplecircuit.dev/linux/kernel/versions/6.13.html 0:00 Intro 0:55 Featured: PREEMPT 9:31 Featured: Multi-grain Timestamps 14:10 Featured: BPF 17:51 Featured: ARM64 23:58 Featured: F2FS 24:56 Featured: Guard pages 27:18 FS 35:31 Architecture Specific 39:22 BPF (again) 39:56 Misc. 43:53 Rust 45:47 Phoronix Benchmark 46:57 Extra part (;
EXT4 | How does it work?
Переглядів 8 тис.14 днів тому
History and schematics of one of the best file system! Notes: maplecircuit.dev/videos/2025-1-11-ext4-how-does-it-work.html 0:00 Intro 1:54 History 3:05 Larger FS 5:45 Extents 12:20 Compatibility 13:51 Htrees 14:36 Fast FSCK 16:25 Allocation 21:09 Metadata Checksums 23:17 Better Times 24:10 Extended Attributes 25:45 Quotas 26:45 Barriers 28:27 Flexible Block Groups 30:33 Meta Block Groups 33:33 ...
Linux Code of Conduct | Why you need to Apologize?
Переглядів 2,1 тис.14 днів тому
Hope you enjoy! Notes (PS if you snoop around you'll see some fun EXT4 things): maplecircuit.dev/videos/2025-1-8-linux-code-of-conduct-why-you-need-to-apologize.html
Htree | The Secret Savior of EXT3
Переглядів 1,9 тис.21 день тому
All you need to know about HTrees! Notes: publish.obsidian.md/maplecircuit/Videos/2025-1-2 Htree The secret savior of EXT3 0:00 Intro 1:00 The problem 2:02 FS Structure 101 5:48 Htrees! 10:15 Example 13:30 Extras
EXT3 | How does it work?
Переглядів 2,7 тис.Місяць тому
History and schematics of one of the best file system! Notes: publish.obsidian.md/maplecircuit/Videos/2024-12-28 EXT3 How does it work 0:00 Intro 0:34 History 4:24 Journal 9:18 Improving Scalability 14:28 Preallocation/Reservation 17:02 Online Resizing 19:00 schematics 20:30 The end!
Linux Kernel 6.12 | This is Historic
Переглядів 130 тис.2 місяці тому
Beginner friendly deep dive into the latest kernel! My notes: publish.obsidian.md/maplecircuit/Videos/2024-11-17 Linux Kernel 6.12 This is Historic I forgot to say it in the vid, BIG thank you to Phoronix and LWN, couldn't do it without them! 0:00 Intro 0:58 Featured 8:17 File Systems 15:41 Architecture Specific 27:09 GPU/AUDIO 29:48 Network 33:38 Hardware 41:26 VM 43:57 Security 48:08 Misc 1:0...
BcacheFS Rant....
Переглядів 1,8 тис.2 місяці тому
Just pushing my thoughts... Notes: publish.obsidian.md/maplecircuit/Videos/2024-11-15 BcacheFS Rant.....
VFS | How your system knows where files are
Переглядів 9 тис.3 місяці тому
Thank you for watching! Notes: publish.obsidian.md/maplecircuit/Videos/2024-10-27 VFS How your system knows where files are 0:00 Intro 0:50 History 1:22 0.96c 2:35 Modern version 3:30 Dentry cache 8:04 How to open a file 10:20 Modern Final review 11:22 VFS Fun Facts 13:20 End Rambling (;
GNU Parallel becomes Unhinged | Who thought this was a good idea?
Переглядів 1,4 тис.3 місяці тому
Thank you for watching! savannah.gnu.org/news/?id=10687
EXT2 | How does it work?
Переглядів 8 тис.3 місяці тому
History and schematics of one of the best file system! Notes: publish.obsidian.md/maplecircuit/Videos/2024-10-13 EXT2 How does it work 0:00 Intro 0:30 History 5:49 Basics 10:05 Schematics
Linux Kernel 6.11 | Drama and 15X Part 2
Переглядів 5 тис.4 місяці тому
Beginner friendly deep dive into the latest kernel! Thank you for watching! Part 1 ua-cam.com/video/NPJ7DzdysE4/v-deo.html Notes: publish.obsidian.md/maplecircuit/Videos/2024-09-15 Linux Kernel 6.11 Drama and 15X 0:00 Intro 0:13 GPU/audio 10:21 VM 12:42 Memory 101 14:25 Memory 20:34 Security 26:09 Cryptography 27:52 Hardware 34:32 Benchmarks
Linux Kernel 6.11 | Drama and 15X Part 1
Переглядів 15 тис.4 місяці тому
Beginner friendly deep dive into the latest kernel! Thank you for watching! Part 2 ua-cam.com/video/JCwHiNa_LZg/v-deo.html Notes: publish.obsidian.md/maplecircuit/Videos/2024-09-15 Linux Kernel 6.11 Drama and 15X 0:00 Intro 0:48 File System 14:13 Rust 22:58 Misc 28:24 Arch Specific
How about `make isoimage` for creating a bootable kernel image?
Hey @Maple-Circuit I usually watch your videos on TV so I can't comment on your videos, you seem to know a lot about Linux and that's amazing, I'm a subscriber and I'm here to ask is there any way for me to reach you other than youtube comments?
Maplecircuit@gmail.com
Didn't we forget to create the /proc and /sys directories or did I miss something ?
Yep we did XD
I'd love a video about how the lost+found folder and recovery worked. On one scary close call I discovered in there the video of my first child seeing their baby sister for the first time... Glad that recovery found that...
Great suggestion!
LFN
When Gentoo is too easy for you:
Thanks Chad
partprobe makes the kernel automatically detect that your disk image has partitions and it will create /dev/loop15p1 without manually putting the 1MB offset. Other comments have mentioned losetup with the -P option, that just calls partprobe for you as part of the losetup execution
I think this is a cool idea. I'd like to see you build a text mode productivity suite which might include nano, tmux, tty-clock, calcurse, wordgrinder, sc, and tpp.
extra part
I would like to see a homebrew shell. Maybe something LISPy, so it is easy to code.
more like lingua franca nova, amirite fellas? (she said, fully aware of the fact that it is unlikely anyone else will see this comment that has watched conlang critic)
Incredible video, I always had the curiosity to do something like this but couldn't find any resources. Do you have any books or other resources that one could read to expand their knowledge on this stuff?
Nope, just some trial and error and stack overflow... GL XD
This is so good!!! 🤩 🐧💪
Down vote for busybox 😐 Edit: to be clear I liked the video - but busybox is a way of sidestepping some really important things. Using busybox is more of an IoT pathway for Linux - which can be very frustrating down the line. I know - I’ve done it before - it’s worth taking the time to implement various packages for a release. Not only does it establish good software practices but it keeps things open-ended whereas busybox just makes a lot of the decisions for you. And they’re not always the best ones.
True! Down the line, I'll probably go ahead and do without it. For now, I'm going for simplicity!
You can use losetup -p to create a partitioned loop block device.
When you created initramfs.cpio, you could have created it as ../initramfs.cpio to avoid including a half completed initramfs.cpio within the archive. That's why you got the "cpio: FIle ./initramfs.cpio grew, 2526720 new bytes not copied" message.
in the next episode we will be making our own silicon dies
XD
nice use of busybox. 10/10
GIT is pronounced the word "git". JIT is something else (Just-In-Time... recompiler, used for emulation)
Yep will correct!
pure dead brilliant video thank you good sir LFN!
Thanks!
Very interesting! Was thinking about writing something with Go (which very easily compiles to a static executable) that boots using only a kernel. This would be a great start ;) Hope this series keeps going. I think the next step would be getting networking and file-systems working?
in next vid you should probably add some driver for disk and FS
LFN. This is really very interesting. The applications for this are intriguing. For example, a LFN for running docker.
Any chance of a LFN with BTRFS and OSTREE?
omg this is so inspiring. Now how do we make a functional userspace? since that is all running on root
typing "clear" instead of just hitting ctl-L is certainly a choice...
LFN add fuse and squashfs readability to automount, expanding the linux system overlay...
For EFI systems you could just use EFI Stub and basically drops the need of a bootloader
LFN
LFN seeing snap making so many loopback devices makes me cringe, why use snap man 😭
snap will not go away until flatpak can (comfortably) handle all of the roles it fills. For instance, flatpak does not do command line applications well. And if the flatpak developers decide that filling those roles is not a priority for them, then snap will never go away.
LFN
had to do it from a slackware source cd back in the day had no internet connection
2:17 LFN Why would it be assumed that I'd have a 64 bit system to compile my distributed operating system?
XD
ah yes, the lovely loop device spam of snapd, you love to see it. such a great packaging format.
I'm dead XD
One of the main reasons I avoid Snap.
I don't think you need an offset and two loops when formatting the boot partition. If you include the -P option with losetup, a partscan will be done and you will find both the device and the created partition with lsblk (the partition in this case would be under loop15 called /dev/loop15p1, as in partition 1). Does not really matter, but less confusing than using two loops. You can then interact with the loop as if it was a normal device, create more partitions and filesystems or whatnot. At least that is what I do with my rpi backup script, creating minimal img file and then sync with rsync. :)
True!
Please please please keep this (hopefully) series going!!!
It will!
Great stuff, LFN!
Thanks!
I might try this. I'll probably learn a few things. It isn't too crazy...
I try to keep it doable!
LFG! erm...
need more LFS and LFN content, its fantastic
Will do!
I think next logical step would be making an installer out of that image which will replicate the system (except the installer) and will add some additional program on the target system
By you pronouncing git as jit it reinforces to me that gif is still in fact pronounced gif and not jif.
Lol, I say gif, so I really should say git (;
I did many LFS in the past, but nowadays I use buildroot for that, at least you don't need to do everything manually, and plus you have a bunch of extra arch available
Very nice and concise explanation! I just wonder... isn't it a bit of a stretch to call it a "distro"? It's a bootable linux system, that's all.
The goal will be to modify it in the coming videos, but yea, for now it is a kernel and... not much more (;
Obligatory "Can it run DOOM?" Chocolate Doom just depends on SDL, and there are even ports that run in the framebuffer without a display server, so should be doable
lol spoiler: maplecircuit.dev/videos/2025-1-25-lfn-make-your-own-distro-from-nothing.html#spoiler_I_will_probably_implement_doom_on_LFN_0
I compiled a kernel for my old 486 and working on making the smallest viable dos like experience with a modern linux kernel that can run Chocolate Doom. Im hoping to get it working on 4MB as the original doom requires under DOS, but I will find that out over the coming week I guess
this video is so great. ive been wanting to experiment with busybox on the bare kernel but always got an error regarding TC. i never had enough info on how busybox works, until now! i disabled it and it compiled flawlessly. thx!! :)))
Happy I could help!
LFN project real??? This is gonna be GOOOODD!!!
YEEAAAA
@@Maple-Circuit LETS GOOOOOOO LFN REAL (actually im gonna follow this on my arch laptop later, always wanted to make a distro so i thank you for this guide)
From nothing!? I hope that means a full source bootstrap. No precompiled compilers allowed! /j obviously
lol that would be Linux From Pain XD