#08 - How To Run An Old Toolchain with Docker

  Рет қаралды 11,589

Make Me Hack

Make Me Hack

4 жыл бұрын

We want to build a kernel and a root file system for a QEMU emulated board, where to run interesting binaries of our IoT device, but our device has a very old kernel, libraries, and packages. This means that we need to run an old Buildroot version or other old tools, that will not run on our current Linux desktop, but they will run on old Linux distributions.
To overcome this problem, in a simple and fast way, without the burden and overhead of a virtualization environment, we will introduce Docker, which can be configured to run older tools, transparently, on our modern Linux distribution.
This episode is about how to use Docker to build the emulation environment, using old tools, like old versions of Buildroot, that don't run on modern Linux distributions. We have to use a container environment, like Docker, or a more complex virtualization environment to solve this issue.
This argument, is not strictly related to hacking, but it is a very important tool, needed to move forward with the Buildroot installation, configuration, and generation of the kernel and the root file system for our QEMU based emulation environment.
Docker is a very useful tool that can be used in many different situations, it is a light and efficient tool, to package everything is needed to run complex tools in a well-defined environment; we can include an entire Linux distribution in a Docker image. It can be particularly useful in the embedded space where, often, there is the need to rebuild some software on devices that are on the field for many years and a very old toolchain is required.
It is an easy to use tool, but it is important to know some basic concepts that we will explore.
Useful Links
Docker container and scripts used in the video: github.com/digiampietro/hacki...
The files to build and run the Docker container shown on this episode: github.com/digiampietro/hacki...
Comparison of libc implementations for Linux: www.etalabs.net/compare_libcs....
uClibc a C library for developing embedded Linux systems: www.uclibc.org/
Docker, it can package an application and its dependencies in a virtual container that can run on any Linux server: www.docker.com/
Docker Hub, where to find and share Docker containers: hub.docker.com/
Channel's Author: www.makemehack.com/2020/02/a-...
Channel's Web Site: www.makemehack.com/
The sample router (Gemtek WVRTM-127ACN) on techinfodepot: en.techinfodepot.shoutwiki.com...
The sample router (Gemtek WVRTM-127ACN) reverse-engineered on GitHub, includes scripts to dump the EEPROM to a text file and to convert it back to binary file: github.com/digiampietro/hacki...
QEMU, the Quick EMUlator: www.qemu.org/
Buildroot, a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation: buildroot.org/

Пікірлер: 21
@thecriticalpoint
@thecriticalpoint 3 жыл бұрын
All your content is pluralsight quality and I am amazed time after time how specialized, relevant, and elite your videos are. I don't even know how anyone could possibly learn all this on their own without coaching... but you give a hint on every video... DECADES of learning by failing forward. Thank you
@jdaniele
@jdaniele 3 жыл бұрын
Amazing video, you are like an alive 1000 pages reference manual...👏👏👏😄
@knyshov
@knyshov 6 ай бұрын
I am a long-time Linux user. You showed how to apply my knowledge in unexpected ways.
@louieearle
@louieearle Жыл бұрын
Your video is very helpful to me, and likely saved me days of time messing around with inefficient VMs in setting up an ancient buildroot environment. Thank you so much for making these! It's rare to find someone who not only understands the technology, but who can explain it clearly. You are a master of both.
@luizboina3187
@luizboina3187 10 ай бұрын
You are Amazing, Valerio!!! Congrats on making this concise, didactic and useful material for us, I have 100% certain that a lot of people that don't comment on this series have the same feeling that I'm feeling right now. I'm Brazilian and I'm not confident about my English speaking as well but I can understand you perfectly, You're amazing!!!
@AaronYool
@AaronYool 3 жыл бұрын
I have been hardware hacking since I was a teenager and your videos are so good I am literally watching all of them like I just started hacking yesterday lol. I generally build toolchains and rootfs with debootstrap and chroot using scripts I wrote a long time ago, but this is good stuff to pull me into the modern day
@5lide
@5lide 3 жыл бұрын
Really great! Yes, please keep making videos. They're very interesting and informative. Thank you.
@charliejlxu
@charliejlxu Жыл бұрын
Thank you very much for this video. It's the best video I have seen on introducing the practical application of docker system and how it works. Thanks again for your time on it.
@rikvermeer1325
@rikvermeer1325 Жыл бұрын
@MakeMeHack This is insane! I've been a software developer for a long time now and I went more into embedded devices. However there's soo much I've learned from these videos, even some Docker related stuff. Furthermore I've learned binwalk thanks to you. Also a big fan of Qemu (I use it for building/configuring Raspberry Pi images) so I'll be sure to check out buildroot too. Thanks!
@edgeeffect
@edgeeffect 3 жыл бұрын
I've always preferred to use VMs to Docker, simply because I know Virtualbox and VMWare but haven't ever used Docker. This will be interesting to hear why you think Docker is a better option AND people are always talking about using Docker in my "day job" as a web developer... so this will be interesting for work too.
@lumotroph
@lumotroph Жыл бұрын
Amazing. Thank you sir
@srenegedeknudsen4121
@srenegedeknudsen4121 2 жыл бұрын
Thanks for a great series. I hope you will make the last ones in the series. In addition what about a RTOS like vxworks on arm?
@pabloabraham7284
@pabloabraham7284 4 жыл бұрын
Amazing videos!!! Please keep doing them!!! I am following the entire series of videos. I am doing some similar hacking with a Echolife HG 8245 router.
@MakeMeHack
@MakeMeHack 4 жыл бұрын
Hello Pablo Abraham, thank you for your appreciation and support! I will continue doing these videos; the only issue is that I cannot commit to a fixed schedule. My original target was to release a video each week, but, instead, on average I am releasing one every 10 days, more or less.
@audiofreqdj
@audiofreqdj 4 жыл бұрын
@@MakeMeHack take your time! Its absolutely invaluable information!
@nestord8002
@nestord8002 3 жыл бұрын
Excellent!!!! information not usually shared!!!! Keep doing it. Would love to see videos on how to Reverse Engineer PIC micro controllers.
@MakeMeHack
@MakeMeHack 3 жыл бұрын
Hello Nestor Demichelis, thank you for your appreciation, and for your suggestion, I will add this to my list of "ideas for new episodes".
@AMRKAMAL1111
@AMRKAMAL1111 3 жыл бұрын
@@MakeMeHack can you please also for BCM microcontrollers
@kentswanson2807
@kentswanson2807 10 ай бұрын
Perl ftw!
@vladimir0rus
@vladimir0rus Ай бұрын
It is also possible to use CHROOT for such purpose.
@ramboy17
@ramboy17 Жыл бұрын
Is it possible to run newer kernel on older arm device like it is on x86_64?
#07 - How To Emulate Firmware With QEMU - Hardware Hacking Tutorial
44:50
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 135 МЛН
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 17 МЛН
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 25 МЛН
How does an OS boot? //Source Dive// 001
50:22
Low Byte Productions
Рет қаралды 380 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 807 М.
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 540 М.
#05 - How To Get The Root File System - Hardware Hacking Tutorial
33:20
#03 - How To Find The JTAG Interface - Hardware Hacking Tutorial
27:52
Top 10 Linux Job Interview Questions
16:04
tutoriaLinux
Рет қаралды 2,3 МЛН
Finding UART and Getting a Root Shell on a Linux Router
20:11
Matt Brown
Рет қаралды 29 М.
eBPF: Unlocking the Kernel [OFFICIAL DOCUMENTARY]
30:00
Speakeasy Productions
Рет қаралды 86 М.
МОЩНЕЕ ТВОЕГО ПК - iPad Pro M4 (feat. Brickspacer)
28:01
ЗЕ МАККЕРС
Рет қаралды 76 М.
ВСЕ МОИ ТЕЛЕФОНЫ
14:31
DimaViper Live
Рет қаралды 69 М.