{"id":20406003,"url":"https://github.com/coldnew/coldnew-embedded","last_synced_at":"2025-07-06T15:03:49.424Z","repository":{"id":66658837,"uuid":"13919650","full_name":"coldnew/coldnew-embedded","owner":"coldnew","description":"Another gentoo embedded overlay trying to use busybox as init to boot into tiny linux rootfs","archived":false,"fork":false,"pushed_at":"2014-07-23T13:59:19.000Z","size":580,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-05T02:19:06.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coldnew.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-28T07:49:17.000Z","updated_at":"2024-01-06T19:57:11.000Z","dependencies_parsed_at":"2023-02-20T11:15:41.611Z","dependency_job_id":null,"html_url":"https://github.com/coldnew/coldnew-embedded","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coldnew/coldnew-embedded","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fcoldnew-embedded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fcoldnew-embedded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fcoldnew-embedded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fcoldnew-embedded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coldnew","download_url":"https://codeload.github.com/coldnew/coldnew-embedded/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fcoldnew-embedded/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263922470,"owners_count":23530334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:14:15.733Z","updated_at":"2025-07-06T15:03:49.378Z","avatar_url":"https://github.com/coldnew.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n* This overlay is deprecated\n\nThe original goal of this overlay is used Gentoo to create another\nembedded linux distro.\n\nHowever, since I started to use Yocto, this overlay is deprecated now.\n\n* About this overlay\n\nThis is an experimental gentoo overlay which is aim to create a\nminimal linux rootfs based on corssdev, the generated rootfs may not\ncontains the same source in Gentoo. That is to say, this overlay help\nyou to generate a new embedded distro from gentoo.\n\nDO NOT USE THIS overlay in chroot or native environment to run =emerge=\n\n* How to use\n\nYou need to create cross toolchain by =crossdev= first.\n\n: crossdev -t armv7a-hardfloat-linux-gnueabi\n\nLink your =/usr/armv7a-harfloat-linux-gnueabi/etc/make.profile= to\n=/usr/local/portage/coldnew-embedded/profiles/default/linux/arm/10.0/imx6/minimal=.\n\n* Use qemu to help cross compile\n\nTo use qemu to help cross compile, you can write following qemu-wrapper.\n\n#+BEGIN_SRC c\n  #include \u003cstring.h\u003e\n  #include \u003cunistd.h\u003e\n  #include \u003csys/mount.h\u003e\n\n  int mount_target(char *sysroot)\n  {\n          // TODO: Check if mount already\n          char buf[256];\n          sprintf(buf, \"%s/dev/\", sysroot);\n\n          // mount -o bind /dev ${SYSROOT}/dev\n          return mount(\"/dev\", buf, NULL, MS_BIND, NULL);\n  }\n\n  int main(int argc, char **argv, char **envp) {\n\n          char *newargv[argc + 3];\n          newargv[0] = argv[0];\n\n           // Check if SYSROOT env is defined\n          char *sysroot = getenv(\"SYSROOT\");\n          char buf[256];\n\n          if (!sysroot) {\n                  printf(\"SYSROOT not define, fallback to default usage\\n\");\n                  newargv[1] = \"\";\n                  newargv[2] = \"\";\n          }\n          else {\n                  newargv[1] = \"-L\";\n                  newargv[2] = \"/usr/armv7a-hardfloat-linux-gnueabi\";\n\n                  // mount what we neet\n                  mount_target(sysroot);\n          }\n\n          memcpy(\u0026newargv[3], \u0026argv[1], sizeof(*argv) * (argc - 1));\n          newargv[argc + 2] = NULL;\n\n          return execve(\"/usr/bin/qemu-arm\", newargv, envp);\n  }\n#+END_SRC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldnew%2Fcoldnew-embedded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoldnew%2Fcoldnew-embedded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldnew%2Fcoldnew-embedded/lists"}