Introduction to Embedded Linux Part 3 - Flash SD Card and Boot Process | Digi-Key Electronics

  Рет қаралды 68,444

DigiKey

DigiKey

Күн бұрын

Пікірлер: 41
@reptilicusrex4748
@reptilicusrex4748 3 жыл бұрын
This series of videos is very informative and explained extremely well. Especially this one, in which you took the time to create the partitions and filesystems manually for instructional purposes. Thanks for the effort.
@tljstewart
@tljstewart 3 жыл бұрын
Great videos! It’s difficult to find good content on these subjects.
@Telemanblues
@Telemanblues Жыл бұрын
Using the STM partition script worked like a charm. First pass of manual partitioning did not work for me for some reason. Awesome series. Thanks for all of you efforts.
@joshhaughton4547
@joshhaughton4547 3 жыл бұрын
Awesome video! Thanks so much for making this. You do a great job of explaining everything!
@vonmakeheat
@vonmakeheat 2 жыл бұрын
Ok . I swore off low level coding tutorials for a while u sir got me excited to try this stuff again . I mean the explanation of mounting the rootfs after the cook init layer is literally 🔥
@nandospm
@nandospm 3 жыл бұрын
Great tutorial. I tried some different packages and images after last episode and used the FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv file as an argument to the STM32_Programmer_CLI. I am going to try this process next
@amrrasslan4329
@amrrasslan4329 3 жыл бұрын
thx for sharing i hope we see more advanced topics like these hats off to you sir
@zzws524
@zzws524 3 жыл бұрын
Really appreciate your effort. Very clear...
@hamedzaheri7050
@hamedzaheri7050 3 жыл бұрын
Greate series. Thanks
@adoormanusoman
@adoormanusoman 3 жыл бұрын
Hi, please add tutorial on how to add packages to custom Linux using yocto
@subhamdas2491
@subhamdas2491 2 жыл бұрын
Can we make iot project with this ...like getting digital, analog sensor value & process them in the cloud
@byteslee1729
@byteslee1729 2 жыл бұрын
Free knowledge. Wow! I wish all universities taught students like that 😁🤣😂
@anime-id9716
@anime-id9716 11 ай бұрын
Instant subscribe You teach me how to using dd and how to make partition via cli which very clear explanation
@Hacker-at-Large
@Hacker-at-Large 3 жыл бұрын
Couldn’t you hear me screaming about expanding rootfs on the development system?
@ShawnHymel
@ShawnHymel 3 жыл бұрын
Don't worry...that's something I tackle in the next episode ;)
@Shamino0
@Shamino0 2 жыл бұрын
@@ShawnHymel But you don't really want to hard-code any size for that file system. You always want it to fill all remaining space. My recommendation is to set the file system size to the minimum needed for a running system, and then expand that file system to fill its partition after writing it to the SD card. If you do it from the host, there are many tools. I like the graphical "gparted". Or you could use the "resize2fs" command. Or you could do it on the STM device, if your minimal installation has "resize2fs". It might, because that command is typically part of other low-level ext utilities like fsck, which really need to exist for a functioning system. One approach might be to add a script (maybe via systemd) that runs only on the first boot, which resizes the file system to fill the partition. Then (if you want to be really slick), the script can disable itself, so it won't try to run the next time you boot.
@alexscarbro796
@alexscarbro796 3 жыл бұрын
I guess the “Disco” layer is more likely to generate an SD card image since it’s targeted at a specific dev board, whereas this build was for a generic MP1 application?
@sagarshubham8660
@sagarshubham8660 3 жыл бұрын
Hey Shawn and Digikey! Thanks for another great video. Did you get to try genimage for an sdcard image creation? That's how build root does it, for most hardware it has this option anyway, and you can use it with your Yocto build too :) Hope this helps.
@ShawnHymel
@ShawnHymel 3 жыл бұрын
I didn't know about genimage, thanks for the tip!
@illie8066
@illie8066 Жыл бұрын
This is a very good series, simple and clear. however, I had a problem booting up the discovery kit and got 2 lines that stopped the boot sequence: [ 33.762475] vref: disabling [ 33.765065] vdda: disabling The whole process wad good, but after connecting the SD-card and starting the board, I got that.
@dnyaneshvarsalve
@dnyaneshvarsalve Жыл бұрын
@illie8066 I got the same problem, have you found the solution?
@dnyaneshvarsalve2984
@dnyaneshvarsalve2984 Жыл бұрын
Hi, my problem is solved, edit the file to find rootfs with /dev/mmcblk0p5 instead of /dev/sdc5 (/dev/sdc5 in my case)
@illie8066
@illie8066 Жыл бұрын
Sorry for the late response, I had to put it on hold, So, thank you, @dnyaneshvarsalve2984, it worked for me too!! In my case, the location is: /media/illi/bootfs/mmc0_extlinux/extlinux.conf Naturally, I changed to: APPEND root=/dev/sdb5....... because in my case the partitions are sdb1..5. changed to mmcblk0p5 and it worked and I succeeded in logging the system. Thank you!!
@seeuwenkarel9333
@seeuwenkarel9333 3 ай бұрын
Hello all, October 2024, building for/using stm32mp157f-dk2, the change of UUID to /dev/mmcblk0p5 in extlinux.conf did not work for me, but using fdisk to change the uuid of the 5th block (the rootfs) to the uuid found in the extlinux.conf (and other files in that same directory) did work for me. The learning curve is steep and bumpy, but many thanks to Shawn and Digikey for get us this far. Cheers.
@nilutpolkashyap
@nilutpolkashyap 3 жыл бұрын
Can the same tutorial be tried with a Raspberry Pi?
@ShawnHymel
@ShawnHymel 3 жыл бұрын
Do you mean using the Raspberry Pi as the host machine or creating an image for the Raspberry Pi? If using as the host machine, then it should work, but it will take much longer (as the Pi is slower than most modern PCs). If you mean creating an image for the Pi, then that's also possible. I recommend checking out this tutorial: jumpnowtek.com/rpi/Raspberry-Pi-Systems-with-Yocto.html
@nilutpolkashyap
@nilutpolkashyap 3 жыл бұрын
@@ShawnHymel Thanks a lot. I meant creating an image for the Raspberry Pi. I will surely try it out.
@優さん-n7m
@優さん-n7m Жыл бұрын
Can Cygwin be used to do all this stuff?
@AndersJackson
@AndersJackson 2 жыл бұрын
There are a command, which I don't remember the name of, that expands ext3 and ext4 file systems. It is easy to run that, especially from Raspberry Pi or any other Linux system. "man -k ext4" should give you some clues where to find it.
@Shamino0
@Shamino0 2 жыл бұрын
You're probably thinking of the "resize2fs" command. When run without any parameters other than the device, it will resize the file system to match the partition size. On Debian and related systems, it is part of the "e2fsprogs" package. This is the package that includes pretty low-level ext file utilities like fsck (e2fsck), so I would expect it to be in this minimal Linux build. But maybe the build is extremely minimal and therefore omitted this tool. Of course, it only needs to be on the device if you want to resize the file system from the STM32. You could also do that from the host PC after writing the file system to the SD card.
@ugurcanusta7005
@ugurcanusta7005 3 жыл бұрын
Thanks for this video serie, you are being very helpful. Could you do some Qt applications by using this board, it would be great!!!
@Mr_Gaurav
@Mr_Gaurav 3 жыл бұрын
hi i have a microchip sama5d3 xplaned board. I followed the same steps but I am unable to boot through SD card. I have spent two days in trouble shooting but didn't get any luck. can you please help?
@dnyaneshvarsalve
@dnyaneshvarsalve Жыл бұрын
after vref disabling and vdda disabling lines printed on terminal, I can't see any login prompt. any idea ?
@antoniofuentes1551
@antoniofuentes1551 10 ай бұрын
just have the same issue
@joanelietheiligerruiz3144
@joanelietheiligerruiz3144 3 жыл бұрын
El Mejor!!!
@fayask9904
@fayask9904 Жыл бұрын
Raspberry Pi/beagle bone black /STM32MP157F-DK2 which one is better ??
@batkonashbandera5165
@batkonashbandera5165 Жыл бұрын
it depends what you need it for. if you need microcontroler for robotics or adc for sensors. BBB is better. If you just need server with some io, raspberry pi will do just fine. Don't do DK2, its crap.
@優さん-n7m
@優さん-n7m Жыл бұрын
A course like this could easily cost thousands of £
@andrsam3682
@andrsam3682 3 жыл бұрын
чертов гений
@markmanning2921
@markmanning2921 Жыл бұрын
not "in root file system", this is horrendously bad English: Correction: "in ***THE*** root file system" yes it matters.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
How does an OS boot? //Source Dive// 001
50:22
Low Byte Productions
Рет қаралды 429 М.
Embedded Linux Booting Process (Multi-Stage Bootloaders, Kernel, Filesystem)
33:13
How Linux Boots on an Embedded Device - part 1
22:09
Tomaž Zaman
Рет қаралды 11 М.
Introduction to FreeCAD Part 1: Getting Started | DigiKey
29:01
Starting With Linux: What I Wish I Learned First
23:31
Learn Linux TV
Рет қаралды 500 М.
Device Tree: hardware description for everybody !
43:17
Bootlin
Рет қаралды 97 М.
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 752 М.